|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.aries.jpa.blueprint.aries.impl.NSHandler
public class NSHandler
This class handles the JPA namespace in blueprint xml files, it configures
injection for managed persistence units and managed persistence contexts. The
namespace handler also registers clients of managed persistence contexts with
the GlobalPersistenceManager.
| Field Summary | |
|---|---|
static String |
EMPTY_UNIT_NAME_FILTER
A filter to find persistence units that specify an empty name |
static String |
NS_URI_100
The JPA 1.0.0 namespace |
static String |
NS_URI_110
The JPA 1.0.0 namespace |
| Constructor Summary | |
|---|---|
NSHandler()
|
|
| Method Summary | |
|---|---|
void |
contextAvailable(org.osgi.framework.ServiceReference ref)
Called when a PersistenceContextProvider is available |
void |
contextUnavailable(org.osgi.framework.ServiceReference ref)
Called when a PersistenceContextProvider is no longer available |
org.osgi.service.blueprint.reflect.ComponentMetadata |
decorate(Node node,
org.osgi.service.blueprint.reflect.ComponentMetadata component,
org.apache.aries.blueprint.ParserContext context)
Called by blueprint when we meet a JPA namespace element |
Set<Class> |
getManagedClasses()
|
URL |
getSchemaLocation(String namespace)
|
org.osgi.service.blueprint.reflect.Metadata |
parse(Element element,
org.apache.aries.blueprint.ParserContext context)
|
void |
setManager(PersistenceContextProvider manager)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String NS_URI_100
public static final String NS_URI_110
public static final String EMPTY_UNIT_NAME_FILTER
| Constructor Detail |
|---|
public NSHandler()
| Method Detail |
|---|
public void setManager(PersistenceContextProvider manager)
public org.osgi.service.blueprint.reflect.ComponentMetadata decorate(Node node,
org.osgi.service.blueprint.reflect.ComponentMetadata component,
org.apache.aries.blueprint.ParserContext context)
decorate in interface org.apache.aries.blueprint.NamespaceHandlerpublic Set<Class> getManagedClasses()
getManagedClasses in interface org.apache.aries.blueprint.NamespaceHandlerpublic URL getSchemaLocation(String namespace)
getSchemaLocation in interface org.apache.aries.blueprint.NamespaceHandler
public org.osgi.service.blueprint.reflect.Metadata parse(Element element,
org.apache.aries.blueprint.ParserContext context)
parse in interface org.apache.aries.blueprint.NamespaceHandlerpublic void contextAvailable(org.osgi.framework.ServiceReference ref)
PersistenceContextProvider is available
ref - public void contextUnavailable(org.osgi.framework.ServiceReference ref)
PersistenceContextProvider is no longer available
ref -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||