|
eXo Kernel :: MC Kernel Integration :: Demo 2.4.9-GA | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.exoplatform.kernel.demos.mc.InjectingBean
public class InjectingBean
This POJO demonstrates how to use annotations to perform injections of JBoss Microcontainer components into a service object configured and managed through exo-kernel. If we want our class to be instantiated at deploy time, it has to implement org.picocontainer.Startable, otherwise it will only be registered, but not instantiated. MC integration takes place at instantiation time, not at component registration time.
| Constructor Summary | |
|---|---|
InjectingBean()
In this demo this bean is to be instantiated by exo-kernel. |
|
| Method Summary | |
|---|---|
InjectedBean |
getBean()
Getter method. |
Map |
getBindings()
Getter method. |
org.jboss.kernel.spi.config.KernelConfigurator |
getConfigurator()
Getter method. |
InjectedBean |
getInjectedBean()
Getter method for field-injected bean. |
String |
getSomeStringProperty()
Getter method. |
int |
getStartCount()
Getter method. |
TransactionManager |
getTransactionManager()
Getter method. |
void |
initialize(String param1,
String param2,
org.jboss.dependency.spi.Controller param3)
Non-setter method annotated as injection method called with injected parameters |
boolean |
isInstallOk()
Getter method. |
void |
setBean(InjectedBean bean)
Setter method, annotated as injection point for type matching injection. |
void |
setBindings(Map<Class<?>,Object> bindings)
Setter method, annotated as injection point with map injecting annotation. |
void |
setConfigurator(org.jboss.kernel.spi.config.KernelConfigurator configurator)
Setter method, annotated as injection point for name matching injection. |
void |
setSomeStringProperty(String value)
Setter method annotated as injection point for property getter injection. |
void |
setTransactionManager(TransactionManager tm)
Setter method annotated as injection point for type matching injection |
void |
start()
org.picocontainer.Startable lifecycle method. |
void |
stop()
org.picocontainer.Startable lifecycle method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InjectingBean()
| Method Detail |
|---|
public InjectedBean getBean()
public void setBean(InjectedBean bean)
bean - public org.jboss.kernel.spi.config.KernelConfigurator getConfigurator()
public void setConfigurator(org.jboss.kernel.spi.config.KernelConfigurator configurator)
configurator - public Map getBindings()
public void setBindings(Map<Class<?>,Object> bindings)
bindings - public String getSomeStringProperty()
public void setSomeStringProperty(String value)
value - public void start()
start in interface org.picocontainer.Startablepublic void stop()
stop in interface org.picocontainer.Startablepublic InjectedBean getInjectedBean()
public int getStartCount()
public void setTransactionManager(TransactionManager tm)
tm - public TransactionManager getTransactionManager()
public void initialize(String param1,
String param2,
org.jboss.dependency.spi.Controller param3)
param1 - param2 - param3 - public boolean isInstallOk()
|
eXo Kernel :: MC Kernel Integration :: Demo 2.4.9-GA | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||