public class ObjectFactoryBuilder extends Object implements ObjectFactoryBuilder, DirObjectFactory
| Modifier and Type | Field and Description |
|---|---|
static ObjectFactoryBuilder |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
ObjectFactory |
createObjectFactory(Object obj,
Hashtable<?,?> environment)
Create an object factory.
|
Object |
getObjectInstance(Object ref,
Name name,
Context nameCtx,
Hashtable<?,?> environment)
Create an object instance.
|
Object |
getObjectInstance(Object ref,
Name name,
Context nameCtx,
Hashtable<?,?> environment,
Attributes attributes)
Create an object instance.
|
public static final ObjectFactoryBuilder INSTANCE
public ObjectFactory createObjectFactory(Object obj, Hashtable<?,?> environment) throws NamingException
ObjectFactory
from the reference. If the parameter is not a reference, or the reference does not create an ObjectFactory
it will return this as the ObjectFactory to use.createObjectFactory in interface ObjectFactoryBuilderobj - The object bound in the naming contextenvironment - The environment informationNamingException - If any problems occurpublic Object getObjectInstance(Object ref, Name name, Context nameCtx, Hashtable<?,?> environment) throws Exception
getObjectInstance in interface ObjectFactoryref - Object containing reference informationname - The name relative to nameCtxnameCtx - The naming contextenvironment - The environment informationException - If any error occurpublic Object getObjectInstance(Object ref, Name name, Context nameCtx, Hashtable<?,?> environment, Attributes attributes) throws Exception
getObjectInstance in interface DirObjectFactoryref - Object containing reference informationname - The name relative to nameCtxnameCtx - The naming contextenvironment - The environment informationattributes - The directory attributesException - If any error occurCopyright © 2015 JBoss by Red Hat. All rights reserved.