org.norther.tammi.core.naming
Interface NamingContextFactory

All Superinterfaces:
Configurable, ConfigurableFactory<Context>, ObjectFactory<Context>, Startable
All Known Implementing Classes:
DefaultNamingContextFactory

public interface NamingContextFactory
extends ConfigurableFactory<Context>, Startable

An interface to naming context factories.

Version:
$Id: NamingContextFactory.java,v 1.2 2009/09/28 15:08:44 cvsimp Exp $
Author:
Ilkka Priha

Field Summary
static String AUTH_ATTRIBUTE
          The auth attribute.
static String DESCRIPTION_ATTRIBUTE
          The description attribute.
static String ENVIRONMENT_PREFIX
          The environment prefix.
static String FACTORY_ATTRIBUTE
          The factory attribute.
static String GLOBAL_ATTRIBUTE
          The global attribute.
static String NAME_ATTRIBUTE
          The name attribute.
static String NAMING_DOMAIN_PROPERTY
          The naming domain property.
static String PATTERN_ATTRIBUTE
          The pattern attribute.
static String RESOURCE_ENV_PREFIX
          The resource env prefix.
static String RESOURCE_LINK_PREFIX
          The resource link prefix.
static String RESOURCE_PREFIX
          The resource prefix.
static String SCOPE_ATTRIBUTE
          The scope attribute.
static String TRANSACTION_NAME
          The transaction name.
static String TRANSACTION_PREFIX
          The transaction prefix.
static String TYPE_ATTRIBUTE
          The type attribute.
static String VALUE_ATTRIBUTE
          The value attribute.
 
Method Summary
 void clearContexts()
          Clears all contexts.
 Context getDomainContext(String domain)
          Gets a domain specific context.
 Context getInitialContext(String domain)
          Gets an initial context.
 void removeContext(String domain)
          Removes a domain specific context and the corresponding initial context.
 
Methods inherited from interface org.norther.tammi.core.base.ObjectFactory
getInstance, 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
 
Methods inherited from interface org.norther.tammi.core.base.Startable
isStarted, start, stop
 

Field Detail

NAMING_DOMAIN_PROPERTY

static final String NAMING_DOMAIN_PROPERTY
The naming domain property.

See Also:
Constant Field Values

TRANSACTION_PREFIX

static final String TRANSACTION_PREFIX
The transaction prefix.

See Also:
Constant Field Values

ENVIRONMENT_PREFIX

static final String ENVIRONMENT_PREFIX
The environment prefix.

See Also:
Constant Field Values

RESOURCE_PREFIX

static final String RESOURCE_PREFIX
The resource prefix.

See Also:
Constant Field Values

RESOURCE_ENV_PREFIX

static final String RESOURCE_ENV_PREFIX
The resource env prefix.

See Also:
Constant Field Values

RESOURCE_LINK_PREFIX

static final String RESOURCE_LINK_PREFIX
The resource link prefix.

See Also:
Constant Field Values

NAME_ATTRIBUTE

static final String NAME_ATTRIBUTE
The name attribute.

See Also:
Constant Field Values

TYPE_ATTRIBUTE

static final String TYPE_ATTRIBUTE
The type attribute.

See Also:
Constant Field Values

AUTH_ATTRIBUTE

static final String AUTH_ATTRIBUTE
The auth attribute.

See Also:
Constant Field Values

SCOPE_ATTRIBUTE

static final String SCOPE_ATTRIBUTE
The scope attribute.

See Also:
Constant Field Values

VALUE_ATTRIBUTE

static final String VALUE_ATTRIBUTE
The value attribute.

See Also:
Constant Field Values

GLOBAL_ATTRIBUTE

static final String GLOBAL_ATTRIBUTE
The global attribute.

See Also:
Constant Field Values

PATTERN_ATTRIBUTE

static final String PATTERN_ATTRIBUTE
The pattern attribute.

See Also:
Constant Field Values

FACTORY_ATTRIBUTE

static final String FACTORY_ATTRIBUTE
The factory attribute.

See Also:
Constant Field Values

DESCRIPTION_ATTRIBUTE

static final String DESCRIPTION_ATTRIBUTE
The description attribute.

See Also:
Constant Field Values

TRANSACTION_NAME

static final String TRANSACTION_NAME
The transaction name.

See Also:
Constant Field Values
Method Detail

getInitialContext

Context getInitialContext(String domain)
Gets an initial context.

Parameters:
domain - the domain name.
Returns:
the context or null if not bound.

getDomainContext

Context getDomainContext(String domain)
Gets a domain specific context.

Parameters:
domain - the domain name.
Returns:
the context or null if not bound.

removeContext

void removeContext(String domain)
Removes a domain specific context and the corresponding initial context.

Parameters:
domain - the domain name.

clearContexts

void clearContexts()
Clears all contexts.



Copyright © 2004 The Norther Organization. All rights reserved.