|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.hyades.logging.events.EventFactoryHome
Utility class to obtain a new factory instance.
Field Summary | |
---|---|
protected static java.lang.String |
INTERFACE_PREFIX
Deprecated. A prefix used to derive the expected factory class name from the event class name |
Constructor Summary | |
---|---|
EventFactoryHome()
Deprecated. |
Method Summary | |
---|---|
static IEventFactory |
getFactory(java.lang.String instanceName,
java.lang.String eventInterface)
Deprecated. Method to obtain an instance of an event factory. |
void |
releaseFactory(IEventFactory factory)
Deprecated. Method to release an instance of an event factory, when no longer needed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final java.lang.String INTERFACE_PREFIX
Constructor Detail |
public EventFactoryHome()
Method Detail |
public static IEventFactory getFactory(java.lang.String instanceName, java.lang.String eventInterface) throws CannotCreateEventFactoryException
instanceName
- The name of the factory instance.eventInterface
- The interface for events created
by this factory.
If a factory instance already exists with the desired name and event interface, it will be returned.
If no such instance yet exists, it will be created. The factory class (whose name is derived by removing any leading 'I' from the event interface class name, then appending 'Factory') will be loaded and instantiated, and the instance name will be set via the init() method.
CannotCreateEventFactoryException
- Thrown if the desired event factory does not exist and cannot be
created. If the event interface is named IFooEvent, the
factory class must be named FooEventFactoryImpl (no 'I'),
and must be a public class that implements IEventFactory
and allows new instances to be created.public void releaseFactory(IEventFactory factory)
factory
- The factory instance.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |