server.registerMBean( mbean, objectName );
mbeans.add( objectName );
}
else if( visited instanceof ImportedServiceDescriptor )
{
ImportedServiceDescriptor importedServiceDescriptor = (ImportedServiceDescriptor) visited;
ObjectName objectName = new ObjectName( names.peek()
.toString() + ",class=Imported service,importedservice=" + importedServiceDescriptor
.identity() );
RequiredModelMBean mbean = new ModelMBeanBuilder( objectName, importedServiceDescriptor.identity(), ImportedServiceBean.class
.getName() ).
attribute( "Id", "Service id", String.class.getName(), "Id of service", "getId", null ).
attribute( "Visibility", "Service visibility", String.class.getName(), "Visibility of service", "getVisibility", null )
.
attribute( "Type", "Service type", String.class.getName(), "Type of imported service", "getType", null )