Package ru.vyarus.guice.ext.managed
Class DestroyableTypeProcessor
- java.lang.Object
-
- ru.vyarus.guice.ext.managed.DestroyableTypeProcessor
-
- All Implemented Interfaces:
TypePostProcessor<Destroyable>
public class DestroyableTypeProcessor extends java.lang.Object implements TypePostProcessor<Destroyable>
Registers beans implementingDestroyableinterface toDestroyableManagerto be executed on shutdown.- Since:
- 30.06.2014
-
-
Constructor Summary
Constructors Constructor Description DestroyableTypeProcessor(DestroyableManager manager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprocess(Destroyable instance)Called to post process bean.
-
-
-
Constructor Detail
-
DestroyableTypeProcessor
public DestroyableTypeProcessor(DestroyableManager manager)
-
-
Method Detail
-
process
public void process(Destroyable instance)
Description copied from interface:TypePostProcessorCalled to post process bean. It is safe to avoid explicit exception handling (except special cases required by processor logic).- Specified by:
processin interfaceTypePostProcessor<Destroyable>- Parameters:
instance- bean instance- See Also:
GeneralTypeListener
-
-