Home » geronimo-2.2-source-release » org.apache.geronimo.j2ee.j2eeobjectnames » [javadoc | source]

    1   /**
    2    *  Licensed to the Apache Software Foundation (ASF) under one or more
    3    *  contributor license agreements.  See the NOTICE file distributed with
    4    *  this work for additional information regarding copyright ownership.
    5    *  The ASF licenses this file to You under the Apache License, Version 2.0
    6    *  (the "License"); you may not use this file except in compliance with
    7    *  the License.  You may obtain a copy of the License at
    8    *
    9    *     http://www.apache.org/licenses/LICENSE-2.0
   10    *
   11    *  Unless required by applicable law or agreed to in writing, software
   12    *  distributed under the License is distributed on an "AS IS" BASIS,
   13    *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   14    *  See the License for the specific language governing permissions and
   15    *  limitations under the License.
   16    */
   17   package org.apache.geronimo.j2ee.j2eeobjectnames;
   18   
   19   import java.util.Map;
   20   import java.util.HashMap;
   21   
   22   import org.apache.geronimo.gbean.AbstractNameQuery;
   23   import org.apache.geronimo.kernel.repository.Artifact;
   24   
   25   /**
   26    * @version $Rev:385692 $ $Date: 2009-11-20 15:30:26 -0800 (Fri, 20 Nov 2009) $
   27    */
   28   public class NameFactory {
   29   
   30       public static final Object JSR77_BASE_NAME_PROPERTY = "org.apache.geronimo.name.javax.management.j2ee.BaseName";
   31   
   32   
   33       // Manadatory key properties from JSR77.3.1.1.1.3
   34       public static final String J2EE_TYPE = "j2eeType";
   35       public static final String J2EE_NAME = "name";
   36   
   37       // ManagedObject j2eeTypes from JSR77.3-1
   38       public static final String J2EE_DOMAIN = "J2EEDomain";
   39       public static final String J2EE_SERVER = "J2EEServer";
   40       public static final String J2EE_APPLICATION = "J2EEApplication";
   41       public static final String APP_CLIENT_MODULE = "AppClientModule";
   42       public static final String EJB_MODULE = "EJBModule";
   43       public static final String WEB_MODULE = "WebModule";
   44       public static final String RESOURCE_ADAPTER_MODULE = "ResourceAdapterModule";
   45       public static final String ENTITY_BEAN = "EntityBean";
   46       public static final String STATEFUL_SESSION_BEAN = "StatefulSessionBean";
   47       public static final String STATELESS_SESSION_BEAN = "StatelessSessionBean";
   48       public static final String SINGLETON_SESSION_BEAN = "SingletonSessionBean";
   49       public static final String MESSAGE_DRIVEN_BEAN = "MessageDrivenBean";
   50       public static final String SERVLET = "Servlet";
   51       public static final String RESOURCE_ADAPTER = "ResourceAdapter";
   52       public static final String JAVA_MAIL_RESOURCE = "JavaMailResource";
   53       public static final String JCA_RESOURCE = "JCAResource";
   54   //    public static final String JCA_RESOURCE_ADAPTER defined in geronimo extensions
   55       public static final String JCA_CONNECTION_FACTORY = "JCAConnectionFactory";
   56       public static final String JCA_MANAGED_CONNECTION_FACTORY = "JCAManagedConnectionFactory";
   57       public static final String JDBC_RESOURCE = "JDBCResource";
   58       public static final String JDBC_DATASOURCE = "JDBCDataSource";
   59       public static final String JDBC_DRIVER = "JDBCDriver";
   60       public static final String JMS_RESOURCE = "JMSResource";
   61       public static final String JNDI_RESOURCE = "JNDIResource";
   62       public static final String JTA_RESOURCE = "JTAResource";
   63       public static final String RMI_IIOP_RESOURCE = "RMI_IIOPResource";
   64       public static final String URL_RESOURCE = "URLResource";
   65       public static final String JVM = "JVM";
   66   
   67       // abstract name components
   68       public static final String J2EE_DEPLOYABLE_OBJECT = "J2EEDeployableObject";
   69       public static final String J2EE_MODULE = "J2EEModule";
   70       public static final String EJB = "EJB";
   71       public static final String SESSION_BEAN = "SessionBean";
   72       public static final String J2EE_RESOURCE = "J2EEResource";
   73   
   74       //used for J2EEApplication= when component is not deployed in an ear.
   75       public static final String NULL = "null";
   76   
   77       //geronimo extensions
   78       public static final String SERVICE_MODULE = "ServiceModule";
   79       // todo should these really be j2eeType or should we have a Geronimo-specific property?
   80       public static final String TRANSACTION_MANAGER = "TransactionManager";
   81       public static final String TRANSACTION_LOG = "TransactionLog";
   82       public static final String XID_FACTORY = "XIDFactory";
   83       public static final String XID_IMPORTER = "XIDImporter";
   84       public static final String JCA_BOOTSTRAP_CONTEXT = "JCABootstrapContext";
   85       public static final String JCA_CONNECTION_TRACKER = "JCAConnectionTracker";
   86       public static final String JCA_ADMIN_OBJECT = "JCAAdminObject";
   87       public static final String JCA_ACTIVATION_SPEC = "JCAActivationSpec";
   88       public static final String JCA_RESOURCE_ADAPTER = "JCAResourceAdapter";
   89       public static final String JCA_WORK_MANAGER = "JCAWorkManager";
   90       public static final String JCA_CONNECTION_MANAGER = "JCAConnectionManager";
   91       public static final String JCA_XA_TERMINATOR = "JCAXATerminator";
   92       public static final String WEB_FILTER = "WebFilter";
   93       public static final String URL_WEB_FILTER_MAPPING = "URLWebFilterMapping";
   94       public static final String SERVLET_WEB_FILTER_MAPPING = "ServletWebFilterMapping";
   95       public static final String URL_PATTERN = "URLPattern";
   96   //    public static final String GERONIMO_SERVICE = "GBean"; //copied in GBeanInfoBuilder to avoid dependencies in the wrong direction.
   97       public static final String CORBA_SERVICE = "CORBABean";
   98       public static final String CORBA_NAME_SERVICE = "CORBANameService";
   99       public static final String SYSTEM_LOG = "SystemLog";
  100       public static final String JAXR_CONNECTION_FACTORY = "JAXRConnectionFactory";
  101       public static final String CONFIG_BUILDER = "ConfigBuilder";
  102       public static final String MODULE_BUILDER = "ModuleBuilder";
  103       public static final String APP_CLIENT = "AppClient";
  104       public static final String PERSISTENCE_UNIT = "PersistenceUnit";
  105       public static final String PERSISTENCE_UNIT_MODULE = "PersistenceUnitModule";
  106       //jsr 88 configurer
  107       public static final String DEPLOYMENT_CONFIGURER = "DeploymentConfigurer";
  108       public static final String CONFIGURATION_STORE = "ConfigurationStore";
  109       public static final String DEPLOYER = "Deployer"; //duplicated in Deployer
  110       public static final String REALM_BRIDGE = "RealmBridge";
  111       public static final String PERSISTENT_CONFIGURATION_LIST = "PersistentConfigurationList"; //duplicated in FileConfigurationList
  112   //    public static final String URL_PATTERN = "URLPattern";
  113       public static final String SERVLET_TEMPLATE = "ServletTemplate";
  114       public static final String SERVLET_WEB_SERVICE_TEMPLATE = "ServletWebServiceTemplate";
  115       public static final String CORBA_CSS = "CORBACSS";
  116       public static final String CORBA_TSS = "CORBATSS";
  117       public static final String CORBA_SSL = "CORBASSL";
  118       public static final String ORB_CONFIG = "ORBConfig";
  119       public static final String WEB_SERVICE_LINK = "WSLink";
  120       public static final String CORBA_TSS_LINK = "TSSLink";
  121   
  122   
  123       public static AbstractNameQuery newTypeNameQuery(Artifact artifactId, String jeeType, String name) {
  124           Map<String, String> names = new HashMap<String, String>(2);
  125           names.put(J2EE_TYPE, jeeType);
  126           names.put(J2EE_NAME, name);
  127           return new AbstractNameQuery(artifactId, names);
  128       }
  129   }

Home » geronimo-2.2-source-release » org.apache.geronimo.j2ee.j2eeobjectnames » [javadoc | source]