public class SingletonComponentType extends PrimitiveComponentType
| Constructor and Description |
|---|
SingletonComponentType()
Creates a SingletonComponentType.
|
| Modifier and Type | Method and Description |
|---|---|
ComponentInstance |
create()
Starts the component type and creates the singleton
instance.
|
ComponentInstance |
create(java.util.Dictionary conf)
Starts the component type and creates the singleton
instance.
|
ComponentInstance |
create(java.lang.String name)
Starts the component type and creates the singleton
instance.
|
SingletonComponentType |
setObject(java.lang.Object obj)
Sets the pojo object used by the instance.
|
addDependency, addDependency, addHandler, addProperty, addProperty, addService, getFactory, setBundleContext, setClassName, setComponentTypeName, setComponentTypeVersion, setFactoryMethod, setImmediate, setInvalidateMethod, setManagedServicePID, setPropagation, setPublic, setUpdatedMethod, setValidateMethod, start, stopcreateInstance, createInstance, createInstance, disposeInstance, disposeInstance, getInstanceByNamepublic SingletonComponentType()
public SingletonComponentType setObject(java.lang.Object obj)
obj - the object.public ComponentInstance create() throws UnacceptableConfiguration, MissingHandlerException, ConfigurationException
PrimitiveComponentType.start() and the
ComponentType.createInstance() methods.ConfigurationException - occurs if the type description is
incorrectMissingHandlerException - occurs if a handler is not availableUnacceptableConfiguration - occurs if the configuration is not
acceptable by the instanceComponentType.start(),
ComponentType.createInstance()public ComponentInstance create(java.util.Dictionary conf) throws UnacceptableConfiguration, MissingHandlerException, ConfigurationException
PrimitiveComponentType.start() and the
ComponentType.createInstance() methods.conf - the instance configurationConfigurationException - occurs if the type description is
incorrectMissingHandlerException - occurs if a handler is not availableUnacceptableConfiguration - occurs if the configuration is not
acceptable by the instanceComponentType.start(),
ComponentType.createInstance()public ComponentInstance create(java.lang.String name) throws UnacceptableConfiguration, MissingHandlerException, ConfigurationException
PrimitiveComponentType.start() and the
ComponentType.createInstance() methods.name - the name of the instance to create. This parameter will
be used as the instance.name property.ConfigurationException - occurs if the type description is
incorrectMissingHandlerException - occurs if a handler is not availableUnacceptableConfiguration - occurs if the configuration is not
acceptable by the instanceComponentType.start(),
ComponentType.createInstance()Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.