JBoss Managed Parent POM 2.1.1.SP2

org.jboss.managed.api.factory
Class ConfigurableManagedObjectDefinition

java.lang.Object
  extended by org.jboss.util.JBossObject
      extended by org.jboss.managed.api.factory.BaseManagedObjectDefinition
          extended by org.jboss.managed.api.factory.ConfigurableManagedObjectDefinition
All Implemented Interfaces:
Cloneable, org.jboss.util.JBossInterface

public class ConfigurableManagedObjectDefinition
extends BaseManagedObjectDefinition

Configurable managed object definition.

Author:
Ales Justin

Field Summary
 
Fields inherited from class org.jboss.util.JBossObject
hashCode, log, toString
 
Constructor Summary
ConfigurableManagedObjectDefinition()
           
ConfigurableManagedObjectDefinition(Class<?> type, ManagedObjectBuilder builder)
           
ConfigurableManagedObjectDefinition(ManagedObjectFactory factory)
           
ConfigurableManagedObjectDefinition(ManagedObjectFactory factory, Class<?> type, ManagedObjectBuilder builder)
           
 
Method Summary
 ManagedObjectFactory getFactory()
          Get managed obejct factory.
protected  ManagedObjectFactory getMOFactory()
          Get factory internal.
 void setFactory(ManagedObjectFactory factory)
          Set managed object factory.
 void start()
          Add builder to factory.
 void stop()
          Remove builder from factory.
 void toShortString(org.jboss.util.JBossStringBuilder buffer)
           
protected  void toString(org.jboss.util.JBossStringBuilder buffer)
           
 
Methods inherited from class org.jboss.managed.api.factory.BaseManagedObjectDefinition
getBuilder, getType, isValid, setBuilder, setType
 
Methods inherited from class org.jboss.util.JBossObject
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, getHashCode, hashCode, list, notEqual, toShortString, toString, toStringImplementation
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfigurableManagedObjectDefinition

public ConfigurableManagedObjectDefinition()

ConfigurableManagedObjectDefinition

public ConfigurableManagedObjectDefinition(Class<?> type,
                                           ManagedObjectBuilder builder)

ConfigurableManagedObjectDefinition

public ConfigurableManagedObjectDefinition(ManagedObjectFactory factory)

ConfigurableManagedObjectDefinition

public ConfigurableManagedObjectDefinition(ManagedObjectFactory factory,
                                           Class<?> type,
                                           ManagedObjectBuilder builder)
Method Detail

getMOFactory

protected ManagedObjectFactory getMOFactory()
Get factory internal. This method should be used when internally accessing MO factory as it will return default instance in case factory is not explicitly set.

Returns:
the MO factory

start

public void start()
Add builder to factory.


stop

public void stop()
Remove builder from factory.


getFactory

public ManagedObjectFactory getFactory()
Get managed obejct factory.

Returns:
the managed object factory

setFactory

public void setFactory(ManagedObjectFactory factory)
Set managed object factory.

Parameters:
factory - the managed object factory

toShortString

public void toShortString(org.jboss.util.JBossStringBuilder buffer)
Specified by:
toShortString in interface org.jboss.util.JBossInterface
Overrides:
toShortString in class BaseManagedObjectDefinition

toString

protected void toString(org.jboss.util.JBossStringBuilder buffer)
Overrides:
toString in class BaseManagedObjectDefinition

JBoss Managed Parent POM 2.1.1.SP2

Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.