org.jvnet.hk2.config.provider.internal
Class ConfigInstanceListener

java.lang.Object
  extended by org.jvnet.hk2.config.provider.internal.ConfigInstanceListener
All Implemented Interfaces:
InstanceLifecycleListener

@Service
@Singleton
public class ConfigInstanceListener
extends Object
implements InstanceLifecycleListener

Author:
jwells

Constructor Summary
ConfigInstanceListener()
           
 
Method Summary
 Filter getFilter()
          This returns a filter that tells the system whether a particular descriptor should be handled by this lifecycle listener.
 void lifecycleEvent(InstanceLifecycleEvent lifecycleEvent)
          This method will be called when any lifecycle event occurs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigInstanceListener

public ConfigInstanceListener()
Method Detail

getFilter

public Filter getFilter()
Description copied from interface: InstanceLifecycleListener
This returns a filter that tells the system whether a particular descriptor should be handled by this lifecycle listener. The filter can be called at any time

Specified by:
getFilter in interface InstanceLifecycleListener
Returns:
The filter that tells the system if this listener applies to this descriptor. If this returns null then this Listener will apply to ALL descriptors.

lifecycleEvent

public void lifecycleEvent(InstanceLifecycleEvent lifecycleEvent)
Description copied from interface: InstanceLifecycleListener
This method will be called when any lifecycle event occurs. The currently supported lifecycle events are POST_PRODUCTION and PRE_DESTRUCTION. Code should be written to allow for future events to be generated.

Specified by:
lifecycleEvent in interface InstanceLifecycleListener
Parameters:
lifecycleEvent - The event that has occurred, will not be null


Copyright © 2013 Oracle Corporation. All Rights Reserved.