org.jcoderz.commons.config
Class ConfigurationServiceContainerFactory

java.lang.Object
  extended by org.jcoderz.commons.config.ConfigurationServiceContainerFactory

public final class ConfigurationServiceContainerFactory
extends Object

Container factory to create the ConfigurationService (ConfigurationServiceInterface) and the ConfigurationServiceAdminService (ConfigurationServiceAdminInterface). The factory can only be used in a J2EE container context (EJB, Web, ...). Do not use this factory in a standalone EJB client.

Author:
generated

Method Summary
static ConfigurationServiceAdminInterface createLocalAdmin()
          Returns a remote instance of the ConfigurationServiceAdminInterface.
static ConfigurationServiceInterface createLocalService()
          Returns a local instance of the ConfigurationServiceInterface.
static ConfigurationServiceAdminInterface createRemoteAdmin()
          Returns a remote instance of the ConfigurationServiceAdminInterface.
static ConfigurationServiceInterface createRemoteService()
          Returns a remote instance of the ConfigurationServiceInterface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createLocalService

public static ConfigurationServiceInterface createLocalService()
Returns a local instance of the ConfigurationServiceInterface.

Returns:
a local instance of the ConfigurationServiceInterface.

createRemoteService

public static ConfigurationServiceInterface createRemoteService()
                                                         throws RemoteException,
                                                                CreateException,
                                                                NamingException
Returns a remote instance of the ConfigurationServiceInterface. This method uses the "java:comp/env" naming context that is only available in a J2EE container.

Returns:
a remote instance of the ConfigurationServiceInterface.
Throws:
RemoteException - communication-related exceptions that may occur during the execution of a remote method call.
CreateException - if the creation the EJB object failed.
NamingException - if the lookup of the EJB object failed.

createLocalAdmin

public static ConfigurationServiceAdminInterface createLocalAdmin()
Returns a remote instance of the ConfigurationServiceAdminInterface.

Returns:
a remote instance of the ConfigurationServiceAdminInterface.

createRemoteAdmin

public static ConfigurationServiceAdminInterface createRemoteAdmin()
                                                            throws RemoteException,
                                                                   CreateException,
                                                                   NamingException
Returns a remote instance of the ConfigurationServiceAdminInterface. This method uses the "java:comp/env" naming context that is only available in a J2EE container.

Returns:
a remote instance of the ConfigurationServiceAdminInterface.
Throws:
RemoteException - communication-related exceptions that may occur during the execution of a remote method call.
CreateException - if the creation the EJB object failed.
NamingException - if the lookup of the EJB object failed.


Copyright 2007 The jCoderZ Project.