|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ca.commons.jndi.beans.JNDIBeanStoreFactory
public final class JNDIBeanStoreFactory
| Field Summary | |
|---|---|
static javax.xml.bind.JAXBContext |
jaxbContext
|
static Logger |
LOGGER
|
static Schema |
xmlSchema
|
| Constructor Summary | |
|---|---|
JNDIBeanStoreFactory()
|
|
JNDIBeanStoreFactory(DataModelBuilder dataModelBuilder)
|
|
JNDIBeanStoreFactory(DataModelBuilder dataModelBuilder,
boolean appendBinaryOption)
|
|
| Method Summary | |
|---|---|
void |
addMap(InputStream in,
ClassLoader classLoader)
|
void |
addMap(com.ca.commons.jndi.beans.xmlbind.Jndibeanmap beanMap,
ClassLoader classLoader)
|
com.ca.commons.jndi.beans.xmlbind.BeanType |
findMatchingBeanClassProperty(String propName,
String propValue)
|
Collection<JNDIBeanPropertyHandler> |
getAllHandlers()
|
String |
getBeanClassProperty(BeanStoreClassSpec<?> cl,
String propertyName)
Retrieves a property value for bean class. |
String |
getBeanClassProperty(Class<?> cl,
String propertyName)
|
List<com.ca.commons.jndi.beans.xmlbind.BeanType> |
getBeanTypeHierarchy(BeanStoreClassSpec<?> cl)
Returns a list of all BeanTypes in the inheritance
hierarchy for the given class. |
Set<String> |
getBinaryAttributes()
|
String |
getDN(BeanStoreClassSpec<?> cl,
String rdn)
|
String |
getDN(BeanStoreClassSpec<?> cl,
String rdn,
String baseDN)
|
String |
getForceRead(BeanStoreClassSpec<?> aClass,
String propName)
|
JNDIBeanPropertyHandler |
getHandler(String name)
|
int |
getLoadLevel(BeanStoreClassSpec<?> aClass,
String propName)
|
int |
getLoadLevel(Class<?> aClass,
String propName)
|
Collection<List<com.ca.commons.jndi.beans.xmlbind.MappingType>> |
getMappings(BeanStoreClassSpec<?> cl)
Returns a Collection of Lists of MappingTypes,
grouped by ID for this class. |
List<String> |
getRequiredProperties(BeanStoreClassSpec<?> cl)
|
List<String> |
getSearchableProperties(BeanStoreClassSpec<?> cl)
Returns a List of all searchable properties names for
the given class. |
List<String> |
getSearchableProperties(Class<?> cl)
|
static com.ca.commons.jndi.beans.xmlbind.Jndibeanmap |
loadJNDIBeanMap(InputStream in)
|
JNDIBeanStore |
newBeanStore(DirContext ctx)
Creates a new JNDIBeanStore using a
FixedDirContextFactory. |
JNDIBeanStore |
newBeanStore(DirContextFactory ctxFactory)
Creates a new JNDIBeanStore using the specified
DirContextFactory. |
JNDIBeanStore |
newBeanStore(Properties jndiEnv)
Creates a new JNDIBeanStore using a
StandardDirContextFactory. |
void |
removeMap(com.ca.commons.jndi.beans.xmlbind.Jndibeanmap beanMap,
ClassLoader classLoader)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Logger LOGGER
public static final Schema xmlSchema
public static final javax.xml.bind.JAXBContext jaxbContext
| Constructor Detail |
|---|
public JNDIBeanStoreFactory(@Nullable
DataModelBuilder dataModelBuilder,
boolean appendBinaryOption)
public JNDIBeanStoreFactory(@Nullable
DataModelBuilder dataModelBuilder)
public JNDIBeanStoreFactory()
| Method Detail |
|---|
public static com.ca.commons.jndi.beans.xmlbind.Jndibeanmap loadJNDIBeanMap(InputStream in)
throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBExceptionpublic Set<String> getBinaryAttributes()
public void addMap(InputStream in,
ClassLoader classLoader)
throws JNDIBeanStoreException,
javax.xml.bind.JAXBException
JNDIBeanStoreException
javax.xml.bind.JAXBException
public void addMap(com.ca.commons.jndi.beans.xmlbind.Jndibeanmap beanMap,
ClassLoader classLoader)
throws JNDIBeanStoreException
JNDIBeanStoreException
public void removeMap(com.ca.commons.jndi.beans.xmlbind.Jndibeanmap beanMap,
ClassLoader classLoader)
public Collection<JNDIBeanPropertyHandler> getAllHandlers()
public JNDIBeanPropertyHandler getHandler(String name)
public JNDIBeanStore newBeanStore(Properties jndiEnv)
JNDIBeanStore using a
StandardDirContextFactory.
jndiEnv - The JNDI environment to use to create directory
contexts.StandardDirContextFactorypublic JNDIBeanStore newBeanStore(DirContext ctx)
JNDIBeanStore using a
FixedDirContextFactory.
ctx - The directory context to be used.FixedDirContextFactorypublic JNDIBeanStore newBeanStore(DirContextFactory ctxFactory)
JNDIBeanStore using the specified
DirContextFactory.
ctxFactory - The directory context factory to be used by the
new JNDIBeanStore instance. The factory must be
configured before it is passed to this method.
JNDIBeanStore instance.
public final String getDN(BeanStoreClassSpec<?> cl,
String rdn)
throws JNDIBeanStoreException
JNDIBeanStoreException
public final String getDN(BeanStoreClassSpec<?> cl,
String rdn,
String baseDN)
throws JNDIBeanStoreException
JNDIBeanStoreException
@Nullable
public String getBeanClassProperty(Class<?> cl,
String propertyName)
@Nullable
public String getBeanClassProperty(BeanStoreClassSpec<?> cl,
String propertyName)
@Nullable
public com.ca.commons.jndi.beans.xmlbind.BeanType findMatchingBeanClassProperty(String propName,
String propValue)
public List<com.ca.commons.jndi.beans.xmlbind.BeanType> getBeanTypeHierarchy(BeanStoreClassSpec<?> cl)
BeanTypes in the inheritance
hierarchy for the given class.
In the list, BeanTypes for parent class will be placed
before those of child class.
public Collection<List<com.ca.commons.jndi.beans.xmlbind.MappingType>> getMappings(BeanStoreClassSpec<?> cl)
MappingTypes,
grouped by ID for this class.
In each list, MappingTypes for parent class
will be placed AFTER those of child class.
public List<String> getSearchableProperties(Class<?> cl)
public List<String> getSearchableProperties(BeanStoreClassSpec<?> cl)
List of all searchable properties names for
the given class.
public List<String> getRequiredProperties(BeanStoreClassSpec<?> cl)
public int getLoadLevel(Class<?> aClass,
String propName)
@Nullable
public String getForceRead(BeanStoreClassSpec<?> aClass,
String propName)
public int getLoadLevel(BeanStoreClassSpec<?> aClass,
String propName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||