public abstract class FactoryBase
extends java.lang.Object
implements javax.naming.spi.ObjectFactory
| Constructor and Description |
|---|
FactoryBase() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract javax.naming.spi.ObjectFactory |
getDefaultFactory(javax.naming.Reference ref)
If a default factory is available for the given reference type, create
the default factory.
|
protected abstract java.lang.Object |
getLinked(javax.naming.Reference ref)
If this reference is a link to another JNDI object, obtain that object.
|
java.lang.Object |
getObjectInstance(java.lang.Object obj,
javax.naming.Name name,
javax.naming.Context nameCtx,
java.util.Hashtable<?,?> environment)
Creates a new object instance.
|
protected abstract boolean |
isReferenceTypeSupported(java.lang.Object obj)
Determines if this factory supports processing the provided reference
object.
|
public final java.lang.Object getObjectInstance(java.lang.Object obj,
javax.naming.Name name,
javax.naming.Context nameCtx,
java.util.Hashtable<?,?> environment)
throws java.lang.Exception
getObjectInstance in interface javax.naming.spi.ObjectFactoryobj - The reference object describing the object to createjava.lang.Exceptionprotected abstract boolean isReferenceTypeSupported(java.lang.Object obj)
obj - The object to be processedtrue if this factory can process the object,
otherwise falseprotected abstract javax.naming.spi.ObjectFactory getDefaultFactory(javax.naming.Reference ref)
throws javax.naming.NamingException
ref - The reference object to be processednull if no default factory exists.javax.naming.NamingException - If the default factory cannot be createdprotected abstract java.lang.Object getLinked(javax.naming.Reference ref)
throws javax.naming.NamingException
ref - The reference object to be processednull if linked objects are
not supported by or not configured for this reference objectjavax.naming.NamingException - Error accessing linked objectCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.