public class NSHandler extends Object implements org.apache.aries.blueprint.NamespaceHandler
GlobalPersistenceManager.| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
NSHandler() |
| Modifier and Type | Method and Description |
|---|---|
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(org.apache.aries.jpa.container.context.PersistenceContextProvider manager) |
public static final String NS_URI_100
public static final String NS_URI_110
public static final String EMPTY_UNIT_NAME_FILTER
public void setManager(org.apache.aries.jpa.container.context.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.NamespaceHandlerpublic 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 availableref - public void contextUnavailable(org.osgi.framework.ServiceReference ref)
PersistenceContextProvider is no longer availableref - Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.