public class ManagedType extends java.lang.Object implements FactoryStateListener, Lifecycle
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FACTORY_CREATION_JOB_TYPE
Identify the factory creation job submitted to the QueueService.
|
static java.lang.String |
INSTANCE_STARTUP_JOB_TYPE
Identify the instance startup job submitted to the QueueService.
|
| Constructor and Description |
|---|
ManagedType(org.osgi.framework.BundleContext bundleContext,
QueueService queueService,
TypeDeclaration declaration)
Constructs a Managed Type object for the given type declaration.
|
| Modifier and Type | Method and Description |
|---|---|
void |
start()
Starting the management.
|
void |
stateChanged(Factory factory,
int newState)
The factory we have built has a state in his change.
|
void |
stop()
Stopping the management.
|
public static final java.lang.String FACTORY_CREATION_JOB_TYPE
public static final java.lang.String INSTANCE_STARTUP_JOB_TYPE
public ManagedType(org.osgi.framework.BundleContext bundleContext,
QueueService queueService,
TypeDeclaration declaration)
bundleContext - the bundle contextqueueService - the queue servicedeclaration - the declarationpublic void start()
public void stateChanged(Factory factory, int newState)
stateChanged in interface FactoryStateListenerfactory - the changing factorynewState - the new factory stateCopyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.