|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ow2.easybeans.mavenplugin.server.PersistenceSupport
public class PersistenceSupport
Manage the persistence provider support. This class receives events from the server and report all container starting events to its owns listeners.
Field Summary | |
---|---|
static int |
ARTIFACT_ID
ArtifactID information. |
static int |
GROUP_ID
GroupID information. |
static int |
JPA_ECLIPSELINK
Index of Eclipselink persistence provider. |
static int |
JPA_HIBERNATE
Index of Hibernate persistence provider. |
static int |
JPA_OPENJPA
Index of OpenJPA persistence provider. |
static int |
JPA_TOPLINK
Index of Toplink persistence provider. |
static int |
TYPE
Type information. |
static int |
VERSION
Version information. |
Constructor Summary | |
---|---|
PersistenceSupport(EZBEventComponent eventComponent)
Constructor. |
Method Summary | |
---|---|
boolean |
accept(org.ow2.util.event.api.IEvent event)
Check whether the listener wants to handle this event. |
void |
addListener(IPersistenceListener listener)
Add a listener. |
static java.lang.String |
getDependencies(int indexPersistenceProvider,
int typeInfo)
Get information on the persistence provider. |
java.lang.String |
getEventProviderFilter()
Get the event provider filter. |
static java.lang.String |
getImplementation(int indexPersistenceProvider)
Get the implementation of the persistence provider. |
org.ow2.util.event.api.EventPriority |
getPriority()
Get the event priority. |
static int |
getSupportedPersistenceProviders()
Get the number of supported persistence providers. |
void |
handle(org.ow2.util.event.api.IEvent event)
Handle the event. |
void |
removeListener(IPersistenceListener listener)
Remove a listener. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int JPA_ECLIPSELINK
public static final int JPA_HIBERNATE
public static final int JPA_OPENJPA
public static final int JPA_TOPLINK
public static final int GROUP_ID
public static final int ARTIFACT_ID
public static final int VERSION
public static final int TYPE
Constructor Detail |
---|
public PersistenceSupport(EZBEventComponent eventComponent)
eventComponent
- The EasyBeans event componentMethod Detail |
---|
public void addListener(IPersistenceListener listener)
listener
- The listenerpublic void removeListener(IPersistenceListener listener)
listener
- The listenerpublic static java.lang.String getImplementation(int indexPersistenceProvider)
indexPersistenceProvider
- The index of the persistence provider
public static int getSupportedPersistenceProviders()
public static java.lang.String getDependencies(int indexPersistenceProvider, int typeInfo)
indexPersistenceProvider
- The index of the persistence providertypeInfo
- The type of the information
public void handle(org.ow2.util.event.api.IEvent event)
handle
in interface org.ow2.util.event.api.IEventListener
event
- The event to handle.public boolean accept(org.ow2.util.event.api.IEvent event)
accept
in interface org.ow2.util.event.api.IEventListener
event
- The event to check.
public org.ow2.util.event.api.EventPriority getPriority()
getPriority
in interface org.ow2.util.event.api.IEventListener
public java.lang.String getEventProviderFilter()
getEventProviderFilter
in interface EZBEventListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |