public abstract class ComponentType
extends java.lang.Object
Constructor and Description |
---|
ComponentType() |
Modifier and Type | Method and Description |
---|---|
ComponentInstance |
createInstance()
Creates a component instance from the current type
with an empty configuration.
|
ComponentInstance |
createInstance(java.util.Dictionary conf)
Creates a component instance from the current type
with the given configuration.
|
ComponentInstance |
createInstance(java.lang.String name)
Creates a component instance from the current type
with the given name.
|
boolean |
disposeInstance(ComponentInstance ci)
Disposes the given name.
|
boolean |
disposeInstance(java.lang.String name)
Disposes the instance created with this component type which
has the given name.
|
abstract Factory |
getFactory()
Gets the factory attached to the current
component type.
|
ComponentInstance |
getInstanceByName(java.lang.String name)
Gets the component instance created from this component type.
|
abstract void |
start()
Starts the factory attached to this
component type.
|
abstract void |
stop()
Stops the factory attached to this
component type.
|
public abstract Factory getFactory()
public abstract void start()
public abstract void stop()
public ComponentInstance createInstance() throws UnacceptableConfiguration, MissingHandlerException, ConfigurationException
UnacceptableConfiguration
- the configuration is not acceptableMissingHandlerException
- the factory in invalidConfigurationException
- the instance configuration failedpublic ComponentInstance createInstance(java.lang.String name) throws UnacceptableConfiguration, MissingHandlerException, ConfigurationException
name
- the instance nameUnacceptableConfiguration
- the configuration is not acceptableMissingHandlerException
- the factory in invalidConfigurationException
- the instance configuration failedpublic ComponentInstance createInstance(java.util.Dictionary conf) throws UnacceptableConfiguration, MissingHandlerException, ConfigurationException
conf
- the configurationUnacceptableConfiguration
- the configuration is not acceptableMissingHandlerException
- the factory in invalidConfigurationException
- the instance configuration failedpublic boolean disposeInstance(ComponentInstance ci)
ci
- the component instance to deletetrue
if the instance was
successfully disposed.public ComponentInstance getInstanceByName(java.lang.String name)
name
- the instance name.null
if
the instance cannot be found.public boolean disposeInstance(java.lang.String name)
name
- the name of the instance to delete.true
is the instance is successfully disposed.Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.