|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.norther.tammi.core.base.Adaptee org.norther.tammi.core.config.DefaultConfigurable org.norther.tammi.core.config.DefaultConfigurableFactory<Context> org.norther.tammi.core.naming.DefaultNamingContextFactory
public class DefaultNamingContextFactory
A default implementation of NamingContextFactory. The specified class name
must implement the javax.naming.Context
interface.
In addition to javax naming contexts, it supports instances of
DomainContext
instances that can be configured with domain
specific properties of this factory.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.norther.tammi.core.config.DefaultConfigurable |
---|
DefaultConfigurable.Modified |
Field Summary |
---|
Fields inherited from class org.norther.tammi.core.base.Adaptee |
---|
ADAPTEE_NOTIF_DESCRIPTION, ADAPTEE_NOTIFICATIONS |
Fields inherited from interface org.norther.tammi.core.naming.NamingContextFactory |
---|
AUTH_ATTRIBUTE, DESCRIPTION_ATTRIBUTE, ENVIRONMENT_PREFIX, FACTORY_ATTRIBUTE, GLOBAL_ATTRIBUTE, NAME_ATTRIBUTE, NAMING_DOMAIN_PROPERTY, PATTERN_ATTRIBUTE, RESOURCE_ENV_PREFIX, RESOURCE_LINK_PREFIX, RESOURCE_PREFIX, SCOPE_ATTRIBUTE, TRANSACTION_NAME, TRANSACTION_PREFIX, TYPE_ATTRIBUTE, VALUE_ATTRIBUTE |
Constructor Summary | |
---|---|
DefaultNamingContextFactory()
Constructs a default naming context factory. |
Method Summary | |
---|---|
void |
clearContexts()
Clears all contexts. |
Context |
getDomainContext(String domain)
Gets a domain specific context. |
Context |
getInitialContext(String domain)
Gets an initial context. |
Context |
getInstance(String className,
ObjectName loader,
Object[] params,
String[] signature)
Gets an instance of a named class using a specified class loader. |
boolean |
isStarted()
Checks whether the startable has been started. |
void |
removeContext(String domain)
Removes a domain specific context and the corresponding initial context. |
void |
start()
Starts the MBean. |
void |
stop()
Stops the MBean. |
Methods inherited from class org.norther.tammi.core.config.DefaultConfigurableFactory |
---|
getInstance, getInstance, getInstance, isLoaderSupported |
Methods inherited from class org.norther.tammi.core.base.Adaptee |
---|
addAdaptee, addNotificationListener, getAttributeSupport, getBroker, getCanonicalName, getDomain, getFactory, getLoader, getLog, getLog, getMBean, getMBeanServer, getNotificationInfo, getObjectName, getRegistrationTime, getSequenceNumber, hasListeners, isRegistered, postmanaged, premanaged, removeNotificationListener, removeNotificationListener, sendNotification, sendNotification, sendNotification, sendNotification, unmanaged, unregister |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.norther.tammi.core.base.ObjectFactory |
---|
getInstance, getInstance, getInstance, isLoaderSupported |
Methods inherited from interface org.norther.tammi.core.config.Configurable |
---|
addProperty, addProperty, addPropertyFilePath, addPropertyFilePath, clearProperties, containsProperty, getConfigKey, getProperties, getProperty, getPropertyFilePath, getPropertyFilePaths, indexOfProperty, propertyMap, propertyMap, removeProperty, removeProperty, removePropertyFilePath, setConfigKey, setProperties, setProperty, setPropertyFilePath, setPropertyFilePath, setPropertyFilePaths, setPropertyFilePaths, storeProperties |
Constructor Detail |
---|
public DefaultNamingContextFactory()
Method Detail |
---|
public boolean isStarted()
Startable
isStarted
in interface Startable
public void start() throws Exception
Startable
start
in interface Startable
Exception
- if start fails.public void stop()
Startable
stop
in interface Startable
public Context getDomainContext(String domain)
NamingContextFactory
getDomainContext
in interface NamingContextFactory
domain
- the domain name.
public Context getInitialContext(String domain)
NamingContextFactory
getInitialContext
in interface NamingContextFactory
domain
- the domain name.
public void removeContext(String domain)
NamingContextFactory
removeContext
in interface NamingContextFactory
domain
- the domain name.public void clearContexts()
NamingContextFactory
clearContexts
in interface NamingContextFactory
public Context getInstance(String className, ObjectName loader, Object[] params, String[] signature) throws ConstructionException
ObjectFactory
Class loaders are supported only if the isLoaderSupported method returns true. Otherwise the loader parameter is ignored.
getInstance
in interface ObjectFactory<Context>
getInstance
in class DefaultConfigurableFactory<Context>
className
- the name of the class.loader
- the class loader.params
- an array containing the parameters of the constructor.signature
- an array containing the signature of the constructor.
ConstructionException
- if construction fails.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |