|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.servicemix.jbi.deployer.artifacts.AbstractLifecycleJbiArtifact
org.apache.servicemix.jbi.deployer.artifacts.ComponentImpl
public class ComponentImpl
| Nested Class Summary | |
|---|---|
protected class |
ComponentImpl.ComponentWrapper
|
| Nested classes/interfaces inherited from class org.apache.servicemix.jbi.deployer.artifacts.AbstractLifecycleJbiArtifact |
|---|
AbstractLifecycleJbiArtifact.State |
| Field Summary |
|---|
| Fields inherited from class org.apache.servicemix.jbi.deployer.artifacts.AbstractLifecycleJbiArtifact |
|---|
listenerRegistry, LOGGER, prefs, runningState, state, STATE |
| Fields inherited from interface javax.jbi.management.LifeCycleMBean |
|---|
SHUTDOWN, STARTED, STOPPED, UNKNOWN |
| Constructor Summary | |
|---|---|
ComponentImpl(org.osgi.framework.Bundle bundle,
ComponentDesc componentDesc,
javax.jbi.component.Component component,
org.osgi.service.prefs.Preferences prefs,
boolean autoStart,
SharedLibrary[] sharedLibraries)
|
|
| Method Summary | |
|---|---|
void |
addServiceUnit(ServiceUnitImpl serviceUnit)
|
void |
forceShutDown()
Force a shutdown of this component |
org.osgi.framework.Bundle |
getBundle()
|
javax.jbi.component.Component |
getComponent()
Access to the JBI component |
java.lang.ClassLoader |
getComponentClassLoader()
|
java.lang.String |
getDescription()
Retrieves the description of this service assembly |
java.lang.String |
getDescriptor()
Retrieve the JBI descriptor for this service assembly |
javax.management.ObjectName |
getExtensionMBeanName()
|
java.lang.String |
getMainType()
Return the type of this component (service-engine or binding-component) |
java.lang.String |
getName()
Retrieves the name of this service assembly |
java.lang.String |
getParent()
|
java.lang.Class |
getPrimaryInterface()
|
java.util.Set<ServiceAssemblyImpl> |
getServiceAssemblies()
|
ServiceUnit[] |
getServiceUnits()
Retrieve the ServiceUnits deployed on this component |
SharedLibrary[] |
getSharedLibraries()
Retrieve the Shared Libraries used by this component |
java.lang.String |
getSubType()
|
java.lang.String |
getType()
|
java.lang.String |
getVersion()
|
void |
removeServiceUnit(ServiceUnitImpl serviceUnit)
|
void |
shutDown()
|
void |
shutDown(boolean saveState,
boolean force)
|
void |
start()
|
void |
start(boolean saveState)
|
void |
stop()
|
void |
stop(boolean saveState)
|
java.lang.String |
toString()
|
| Methods inherited from class org.apache.servicemix.jbi.deployer.artifacts.AbstractLifecycleJbiArtifact |
|---|
fireEvent, fireEvent, getCurrentState, getListenerRegistry, getRunningState, getState, loadState, saveState, setListenerRegistry |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.jbi.management.LifeCycleMBean |
|---|
getCurrentState |
| Constructor Detail |
|---|
public ComponentImpl(org.osgi.framework.Bundle bundle,
ComponentDesc componentDesc,
javax.jbi.component.Component component,
org.osgi.service.prefs.Preferences prefs,
boolean autoStart,
SharedLibrary[] sharedLibraries)
| Method Detail |
|---|
public java.lang.ClassLoader getComponentClassLoader()
public void addServiceUnit(ServiceUnitImpl serviceUnit)
public void removeServiceUnit(ServiceUnitImpl serviceUnit)
public org.osgi.framework.Bundle getBundle()
public ServiceUnit[] getServiceUnits()
Component
getServiceUnits in interface Componentpublic java.lang.String getName()
Component
getName in interface ComponentgetName in interface Nameablepublic java.lang.String getDescription()
Component
getDescription in interface Componentpublic java.lang.String getDescriptor()
Component
getDescriptor in interface Componentpublic java.lang.String getType()
public javax.management.ObjectName getExtensionMBeanName()
throws javax.jbi.JBIException
getExtensionMBeanName in interface javax.jbi.management.ComponentLifeCycleMBeanjavax.jbi.JBIExceptionpublic javax.jbi.component.Component getComponent()
Component
getComponent in interface ComponentgetComponent in interface ComponentWrapper
public void start()
throws javax.jbi.JBIException
start in interface javax.jbi.management.LifeCycleMBeanjavax.jbi.JBIException
public void start(boolean saveState)
throws javax.jbi.JBIException
javax.jbi.JBIException
public void stop()
throws javax.jbi.JBIException
stop in interface javax.jbi.management.LifeCycleMBeanjavax.jbi.JBIExceptionpublic java.util.Set<ServiceAssemblyImpl> getServiceAssemblies()
public SharedLibrary[] getSharedLibraries()
Component
getSharedLibraries in interface Component
public void stop(boolean saveState)
throws javax.jbi.JBIException
javax.jbi.JBIException
public void shutDown()
throws javax.jbi.JBIException
shutDown in interface javax.jbi.management.LifeCycleMBeanjavax.jbi.JBIException
public void forceShutDown()
throws javax.jbi.JBIException
Component
forceShutDown in interface Componentjavax.jbi.JBIException
public void shutDown(boolean saveState,
boolean force)
throws javax.jbi.JBIException
javax.jbi.JBIExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getParent()
getParent in interface Nameablepublic java.lang.String getMainType()
Component
getMainType in interface ComponentgetMainType in interface Nameablepublic java.lang.String getSubType()
getSubType in interface Nameablepublic java.lang.String getVersion()
getVersion in interface Nameablepublic java.lang.Class getPrimaryInterface()
getPrimaryInterface in interface Nameable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||