com.ibm.wsspi.al
Class ALFactory

java.lang.Object
  extended bycom.ibm.wsspi.al.ALFactory
All Implemented Interfaces:
com.ibm.ws.al.util.ALConstants, com.ibm.ws.al.util.ALPIIMessages

public class ALFactory
extends java.lang.Object
implements com.ibm.ws.al.util.ALConstants

Factory to create/remove AdminAL


Field Summary
protected static java.lang.String CLASS
          class name
static java.lang.String COPYRIGHT
          Copyright
protected static java.util.logging.Logger l
          logger
 
Fields inherited from interface com.ibm.ws.al.util.ALConstants
ADMIN, ALEXTCFG_AL, ALEXTCFG_METAINF_CONFIG, APPLICATIONEARPATH, ARCHIVE, ARCHIVES, CLASSLOADER, EMF_MODEL_PACKAGE_IMPL, EMF_MODEL_PACKAGE_IMPL_SUFFIX, ENVIRONMENT, EXTENSION, EXTENSIONPOINT, J2SE, LIBS, POST_WAS_START, REMOTE_LOCATOR_CLASS, REMOTE_WEBSPHERE_LOCATOR_CLASS, WAS_LOGGER_CLASS_NAME, WAS60
 
Fields inherited from interface com.ibm.ws.al.util.ALPIIMessages
ALLOGGER, ApplicationFileNotFound_Message, ARTIFACTLOADER_ACTIVATED_MBEAN, ARTIFACTLOADER_ADMINTASK_EDITRALSERVERSECURITY_SUCCESS, ARTIFACTLOADER_ADMINTASK_EXEC_SUCCESS, ARTIFACTLOADER_CONFIGFILE_ROOT_NULL, ARTIFACTLOADER_COULD_NOT_ACTIVATE_MBEAN, ARTIFACTLOADER_COULD_NOT_CONNECT_MBEAN, ARTIFACTLOADER_COULD_NOT_FIND_APP_CROSSCELL, ARTIFACTLOADER_COULD_NOT_FIND_APP_WITHINCELL, ARTIFACTLOADER_COULD_NOT_LOAD_CONFIGFILE, ARTIFACTLOADER_COULD_NOT_LOAD_CONFIGFILE_NOREASON, ARTIFACTLOADER_EVENT_RELAY_ERROR, ARTIFACTLOADER_FILENOTFOUND, ARTIFACTLOADER_INCORRECT_URL, ARTIFACTLOADER_INIT_LISTNER_CLASS_ILLEGAL_ACCESS_ERROR, ARTIFACTLOADER_INIT_LISTNER_CLASS_INSTANCESTION_ERROR, ARTIFACTLOADER_INIT_LISTNER_CLASS_NOTFOUND_ERROR, ARTIFACTLOADER_INITIALIZING_CLASSLOADER_ERROR, ARTIFACTLOADER_INITIALIZING_INDEXDIRECTORY_ERROR, ARTIFACTLOADER_INITIALIZING_INDEXZIP_ERROR, ARTIFACTLOADER_INITIALIZING_MODULE_AVAILABLE_MODULENAME, ARTIFACTLOADER_INITIALIZING_MODULE_MODULENAME, ARTIFACTLOADER_IO_FAILURE, ARTIFACTLOADER_LOCATOR_INITIALIZATION_ERROR, ARTIFACTLOADER_OPENFAILURE, ARTIFACTLOADER_PROTOCOL_REG_FAILURE, ARTIFACTLOADER_REMOTE_COULD_NOT_QUERY_APP, ArtifactLoaderConfigDataError_Message_info, ArtifactLoaderInitServerConfigError_Message, ArtifactLoaderInstanceCreation_ClassMethodError, ArtifactLoaderInstanceCreation_RuntimeError, ArtifactLoaderInstanceCreation_SecurityError, BUNDLE, ERR_MALFORMED_SCHEMA_LOCATION_URL$1_MESSAGE$2, RES_BUNDLE, WARN_UNABLE_TO_PARSE_$1DOC_$2URL
 
Constructor Summary
ALFactory()
           
 
Method Summary
static com.ibm.wsspi.al.ArtifactLoader create(com.ibm.etools.j2ee.commonarchivecore.Archive earFile)
          Create an instance AL based on an Archive (ear file).
static com.ibm.wsspi.al.ArtifactLoader create(java.lang.String path)
          Create an ArtifactLoader based on a file directory
static void remove(com.ibm.etools.j2ee.commonarchivecore.Archive earFile)
          Remove the instance AL created based on an Archive (ear file).
static void remove(java.lang.String path)
          Remove an ArtifactLoader instance that is created by ALFactory.create(String path);
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Copyright

See Also:
Constant Field Values

CLASS

protected static final java.lang.String CLASS
class name


l

protected static java.util.logging.Logger l
logger

Constructor Detail

ALFactory

public ALFactory()
Method Detail

create

public static com.ibm.wsspi.al.ArtifactLoader create(java.lang.String path)
Create an ArtifactLoader based on a file directory

Parameters:
path - the path to a file directory which will be the scope of newly created AL.
Returns:
ArtifactLoader a AL instance whose visibility scope is the file directory.

create

public static com.ibm.wsspi.al.ArtifactLoader create(com.ibm.etools.j2ee.commonarchivecore.Archive earFile)
Create an instance AL based on an Archive (ear file).

Parameters:
earFile - an commmon archive (ear file), can not be null.
Returns:
ArtifactLoader an AL instance whose visibility scope is the ear file passed as parameter.

remove

public static void remove(com.ibm.etools.j2ee.commonarchivecore.Archive earFile)
Remove the instance AL created based on an Archive (ear file).

Parameters:
earFile - an commmon archive (ear file), can not be null.
Returns:
void

remove

public static void remove(java.lang.String path)
Remove an ArtifactLoader instance that is created by ALFactory.create(String path);

Parameters:
path -