|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.ejb.cfg.EjbConfig
public class EjbConfig
Manages the EJB configuration files.
| Constructor Summary | |
|---|---|
EjbConfig(EjbContainer ejbContainer)
|
|
| Method Summary | |
|---|---|
void |
addApplicationException(ApplicationExceptionConfig applicationException)
Adds an application exception. |
void |
addEjbPath(Path path)
Adds a path for an EJB config file to the config list. |
void |
addFileSet(FileSetType fileSet)
Adds a path for an EJB config file to the config list. |
void |
addFunction(FunctionSignature sig,
java.lang.String sql)
Adds a function. |
void |
addInterceptor(Interceptor interceptor)
Adds an interceptor. |
void |
addInterceptorBinding(InterceptorBinding interceptorBinding)
Binds an interceptor to an ejb. |
void |
addIntrospectableClass(java.lang.String className)
|
void |
addMessageDestination(MessageDestination messageDestination)
Adds the message destination mapping |
void |
addProxy(EjbBeanConfigProxy proxy)
|
void |
configure()
Configures the pending beans. |
protected void |
configureRelations()
Match up the relations. |
void |
deploy()
Configures the pending beans. |
void |
deployBeans(java.util.ArrayList<EjbBean> beanConfig,
JavaClassGenerator javaGen)
Configures the pending beans. |
EjbBean |
findBeanByType(java.lang.Class type)
Finds an entity bean by its abstract schema. |
java.util.ArrayList<ApplicationExceptionConfig> |
getApplicationExceptions()
Returns the application exceptions. |
EjbBean |
getBeanConfig(java.lang.String name)
Returns the cfg bean with the given name. |
java.lang.String |
getBooleanFalse()
Gets the boolean false literal. |
java.lang.String |
getBooleanTrue()
Gets the boolean true literal. |
EjbContainer |
getEjbContainer()
Returns the EJB manager. |
java.util.ArrayList<FunctionSignature> |
getFunctions()
Gets the function list. |
Interceptor |
getInterceptor(java.lang.String className)
Returns the interceptor with the given class name. |
InterceptorBinding |
getInterceptorBinding(java.lang.String ejbName,
boolean isExcludeDefault)
Returns the interceptor bindings for a given ejb name. |
MessageDestination |
getMessageDestination(java.lang.String name)
|
java.lang.String |
getSchema()
Returns the schema name. |
boolean |
isAllowPOJO()
Return true if POJO are allowed. |
void |
setAllowPOJO(boolean allowPOJO)
Sets true if POJO are allowed. |
void |
setBeanConfig(java.lang.String name,
EjbBean bean)
Sets the cfg bean with the given name. |
void |
setBooleanFalse(java.lang.String falseLiteral)
Sets the boolean false literal. |
void |
setBooleanTrue(java.lang.String trueLiteral)
Sets the boolean true literal. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EjbConfig(EjbContainer ejbContainer)
| Method Detail |
|---|
public void addFileSet(FileSetType fileSet)
public void addEjbPath(Path path)
throws ConfigException
ConfigExceptionpublic void addProxy(EjbBeanConfigProxy proxy)
public java.lang.String getSchema()
public EjbContainer getEjbContainer()
public void setBooleanTrue(java.lang.String trueLiteral)
public java.lang.String getBooleanTrue()
public void setBooleanFalse(java.lang.String falseLiteral)
public java.lang.String getBooleanFalse()
public EjbBean getBeanConfig(java.lang.String name)
public void setBeanConfig(java.lang.String name,
EjbBean bean)
public Interceptor getInterceptor(java.lang.String className)
public void addInterceptor(Interceptor interceptor)
public InterceptorBinding getInterceptorBinding(java.lang.String ejbName,
boolean isExcludeDefault)
public void addApplicationException(ApplicationExceptionConfig applicationException)
public java.util.ArrayList<ApplicationExceptionConfig> getApplicationExceptions()
public void addInterceptorBinding(InterceptorBinding interceptorBinding)
public void addMessageDestination(MessageDestination messageDestination)
public MessageDestination getMessageDestination(java.lang.String name)
public void setAllowPOJO(boolean allowPOJO)
public boolean isAllowPOJO()
public void addIntrospectableClass(java.lang.String className)
public EjbBean findBeanByType(java.lang.Class type)
public void addFunction(FunctionSignature sig,
java.lang.String sql)
public java.util.ArrayList<FunctionSignature> getFunctions()
public void configure()
throws ConfigException
ConfigException
public void deploy()
throws ConfigException
ConfigException
public void deployBeans(java.util.ArrayList<EjbBean> beanConfig,
JavaClassGenerator javaGen)
throws java.lang.Exception
java.lang.Exception
protected void configureRelations()
throws ConfigException
ConfigExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||