com.protomatter.pas.init
Interface PASShutdown
- All Known Implementing Classes:
- PASJdbcPoolShutdown
- public interface PASShutdown
Objects implementing this interface and listed in the configuration
file for PAS are run when PAS is shutting down. To have an implementation
of this interface run when PAS shuts down, list it in the configuration
file for PAS like this:
pas.shutdownClass.NAME = classname
pas.shutdownArgs.NAME = key1=val1,key2=val2,...
When PAS goes to run an implementation of this interface, the class is
loaded using Class.forName(...), it's default constructor is
called, and then the shutdown(...) method is called with
appropriate arguments.
Method Summary |
java.lang.String |
shutdown(java.lang.String name,
java.util.Properties pasProps,
java.util.Properties myProps,
javax.naming.Context context)
Shut this thing down. |
shutdown
public java.lang.String shutdown(java.lang.String name,
java.util.Properties pasProps,
java.util.Properties myProps,
javax.naming.Context context)
throws ShutdownException
- Shut this thing down.
- Parameters:
name
- The symbolic name that this class is listed as in
the configuration file for PAS.pasProps
- The entire configuraton file for PAS.myProps
- Properties specified in the
pas.shutdownArgs.NAME property.context
- A JNDI context object connected to PAS's JNDI tree.