public class EjbConfig
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected EjbManager |
_ejbManager |
Constructor and Description |
---|
EjbConfig(EjbManager ejbContainer) |
Modifier and Type | Method and Description |
---|---|
<X> void |
addAnnotatedType(AnnotatedType<X> rawAnnType,
AnnotatedType<X> annType,
InjectionTarget<X> injectTarget,
java.lang.String moduleName) |
void |
addApplicationException(ApplicationExceptionConfig applicationException)
Adds an application exception.
|
void |
addConfigProxy(EjbBeanConfigProxy proxy) |
void |
addEjbPath(Path path)
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 |
addMessageDestination(MessageDestination messageDestination)
Adds the message destination mapping
|
void |
configure()
Configures the pending beans.
|
void |
deploy()
Configures the pending beans.
|
void |
deployBeans(java.util.ArrayList<EjbBean<?>> beanConfig,
JavaClassGenerator javaGen)
Configures the pending beans.
|
<X> EjbBean<X> |
findBeanByType(java.lang.Class<X> type)
Finds an entity bean by its abstract schema.
|
AppExceptionItem |
getApplicationException(java.lang.Class<?> exn,
boolean isSystem)
Returns the application exceptions.
|
EjbBean<?> |
getBeanConfig(java.lang.String name)
Returns the cfg bean with the given name.
|
EjbManager |
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.
|
java.util.ArrayList<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 |
isConfiguredBean(java.lang.Class<?> beanType) |
void |
setBeanConfig(java.lang.String name,
EjbBean<?> bean)
Sets the cfg bean with the given name.
|
java.lang.String |
toString() |
protected final EjbManager _ejbManager
public EjbConfig(EjbManager ejbContainer)
public void addEjbPath(Path path) throws ConfigException
ConfigException
public void addConfigProxy(EjbBeanConfigProxy proxy)
public java.lang.String getSchema()
public EjbManager getEjbContainer()
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 java.util.ArrayList<InterceptorBinding> getInterceptorBinding(java.lang.String ejbName, boolean isExcludeDefault)
public void addApplicationException(ApplicationExceptionConfig applicationException)
public AppExceptionItem getApplicationException(java.lang.Class<?> exn, boolean isSystem)
public void addInterceptorBinding(InterceptorBinding interceptorBinding)
public void addMessageDestination(MessageDestination messageDestination)
public MessageDestination getMessageDestination(java.lang.String name)
public boolean isConfiguredBean(java.lang.Class<?> beanType)
public <X> void addAnnotatedType(AnnotatedType<X> rawAnnType, AnnotatedType<X> annType, InjectionTarget<X> injectTarget, java.lang.String moduleName)
public <X> EjbBean<X> findBeanByType(java.lang.Class<X> 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
public java.lang.String toString()
toString
in class java.lang.Object