jasco.runtime.aspect.factory
Interface IAspectInstanceCreator

All Known Implementing Classes:
DynamicHookElement

public interface IAspectInstanceCreator


Method Summary
 IHook createNewInstance()
          Creates and initialises a new hook instance as specified by the connector.
 IHook createNewInstance(java.lang.ClassLoader classLoader)
          Creates and initialises a new hook instance as specified by the connector.
 java.lang.Class<? extends IHook> getHookClass()
          Reflective method for returning the aspect class that is created by this instance creator.
 

Method Detail

getHookClass

java.lang.Class<? extends IHook> getHookClass()
Reflective method for returning the aspect class that is created by this instance creator.

Returns:
the class of the aspect

createNewInstance

IHook createNewInstance()
                        throws HookInstantiationFailed
Creates and initialises a new hook instance as specified by the connector.

Returns:
the new hook instance
Throws:
HookInstantiationFailed

createNewInstance

IHook createNewInstance(java.lang.ClassLoader classLoader)
                        throws HookInstantiationFailed
Creates and initialises a new hook instance as specified by the connector.

Parameters:
classLoader - The classLoader to use for loading the hook's class data.
Returns:
the new hook instance
Throws:
HookInstantiationFailed