Package com.sun.enterprise.management.support

Examples of com.sun.enterprise.management.support.TypeInfo


    boolean  success  = true;
    final Iterator  iter    = j2eeTypes.iterator();
    while ( iter.hasNext() )
    {
      final String    j2eeType  = (String)iter.next();
      final TypeInfo  info  = infos.getInfo( j2eeType );
     
      final Class  theInterface  = info.getInterface();
      try
      {
        final String  value  =
          (String)ClassUtil.getFieldValue( theInterface, "J2EE_TYPE" );
        assert( value.equals( j2eeType ) ) :
View Full Code Here


    final TypeInfos  infos  = TypeInfos.getInstance();
   
    final Iterator  iter  = infos.getJ2EETypes().iterator();
    while ( iter.hasNext() )
    {
      final TypeInfo  info  = infos.getInfo( (String)iter.next() );
      final Class    theInterface  = info.getInterface();
      final String  interfaceName  = theInterface.getName();
      if ( ! MON_IGNORE.contains( theInterface ) )
      {
        if ( interfaceName.endsWith( "Monitor" ) )
        {
View Full Code Here

    final TypeInfos  infos  = TypeInfos.getInstance();
   
    final Iterator  iter  = infos.getJ2EETypes().iterator();
    while ( iter.hasNext() )
    {
      final TypeInfo  info  = infos.getInfo( (String)iter.next() );
      final Class  proxyClass  = info.getInterface();
     
      if ( ! AMX.class.isAssignableFrom( proxyClass ) )
      {
        warning( "Proxy interface does not extend AMX: " + proxyClass.getName() );
      }
View Full Code Here

    final TypeInfos  infos  = TypeInfos.getInstance();
   
    final Iterator  iter  = infos.getJ2EETypes().iterator();
    while ( iter.hasNext() )
    {
      final TypeInfo  info  = infos.getInfo( (String)iter.next() );
     
      final Class  proxyClass  = info.getInterface();
     
     
      if ( proxyClass.getName().endsWith( "ResourceConfigProxy" ) )
      {
        if ( proxyClass.getName().endsWith( "ConnectorConnectionPoolConfigProxy" ) )
View Full Code Here

  }
 
    protected final Set<String>
  getFauxChildTypes()
  {
    final TypeInfo  j2eeApplicationInfo  =
      TypeInfos.getInstance().getInfo( J2EETypes.J2EE_APPLICATION );
 
    final Set<String>  childJ2EETypes  = j2eeApplicationInfo.getChildJ2EETypes();
    return( childJ2EETypes );
  }
View Full Code Here

    
   
      protected Class
  getImplClass( final String j2eeType)
  {
    final TypeInfo  info  = TypeInfos.getInstance().getInfo( j2eeType );
    assert( info != null );
   
    return( info.getImplClass() );
  }
View Full Code Here

    private void
  loadDomainRoot()
  {
    try
    {
      final TypeInfo  info  =
        TypeInfos.getInstance().getInfo( XTypes.DOMAIN_ROOT );
      final Class      implClass  = info.getImplClass();
       
      final ObjectName  objectName  = mObjectNames.getDomainRootObjectName( );
       
      final Object  impl  = implClass.newInstance();
      mServer.registerMBean( impl, objectName );
View Full Code Here

  }

    protected void
  unregisterSelfMgrChildren()
  {
    final TypeInfo    selfInfo    =  getSelfTypeInfo();
    final Set<String>  childTypesSet  =  selfInfo.getContaineeJ2EETypes();
    final String[]    childTypes    =  GSetUtil.toStringArray( childTypesSet );
    final MBeanServer  mbeanServer    =  getMBeanServer();
    for( int i = 0; i < childTypes.length; ++i )
    {
      final String    childType  = childTypes[ i ];
      debug( "unregisterSelfMgrChildren: processing type: ", childType);

      final TypeInfo  childInfo  = getTypeInfo( childType );
 
      final Class  childInterface  = childInfo.getInterface();

      if (   //isConfigMgrMBean( childInterface ) ||
          isSingletonMBean( childInterface ) ||
          isUtilityMBean( childInterface )
        )
View Full Code Here

  }
 
    protected void
  registerSelfMgrChildren( )
  {
    final TypeInfo    selfInfo    = getSelfTypeInfo();
    final Set<String> childTypesSet  =  selfInfo.getContaineeJ2EETypes();

    debug( "registerSelfMgrChildren for ", getSelfJ2EEType(), ": ", toString( childTypesSet ) );
   
    if ( childTypesSet.size() != 0 )
    {
      debug( "registerSelfMgrChildren: child types = ", toString( childTypesSet ) );
    }
    else
    {
      debug( "no child types for: ", quote( getObjectName() ) );
    }
   
    final String[]  childTypes  = GSetUtil.toStringArray( childTypesSet );
    for( int i = 0; i < childTypes.length; ++i )
    {
      final String    childType  = childTypes[ i ];
      debug( "registerSelfMgrChildren: processing type: ", childType);
     
      final TypeInfo  childInfo  = getTypeInfo( childType );
 
      final Class  childInterface  = childInfo.getInterface();
   
      if (   isSingletonMBean( childInterface ) ||
          isUtilityMBean( childInterface )
          )
      {
        try
        {
          registerSelfMgrChild( childInfo );
        }
        catch( InstantiationException e )
        {
          trace( "InstantiationException for child of type: " + childInfo.getJ2EEType() +
            " = " + e.getMessage() );
          e.printStackTrace();
         
          final Throwable  t  = ExceptionUtil.getRootCause( e );
          if ( t != e && t != null )
View Full Code Here

  getFullType( final ObjectName partialSelfObjectName )
  {
    final String  selfJ2EEType  = Util.getJ2EEType( partialSelfObjectName );
   
    final TypeInfos  typeInfos  = TypeInfos.getInstance();
    final TypeInfo  info  = typeInfos.getInfo( selfJ2EEType );
   
    final String[]  chain  = typeInfos.getJ2EETypeChain( partialSelfObjectName );
   
    final String  fullType  = ArrayStringifier.stringify( chain, "." );
   
View Full Code Here

TOP

Related Classes of com.sun.enterprise.management.support.TypeInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.