public class ComponentConfiguration extends Object
| Constructor and Description |
|---|
ComponentConfiguration(ComponentDescription componentDescription,
org.jboss.as.server.deployment.reflect.ClassReflectionIndex classIndex,
ClassLoader moduleClassLoader,
org.jboss.modules.ModuleLoader moduleLoader) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAroundConstructInterceptor(org.jboss.invocation.InterceptorFactory interceptorFactory,
int priority)
Adds an around-construct interceptor
|
void |
addAroundConstructInterceptors(List<org.jboss.invocation.InterceptorFactory> factories,
int priority)
Adds an around-construct interceptor
|
void |
addComponentInterceptor(org.jboss.invocation.InterceptorFactory factory,
int priority,
boolean publicOnly)
Adds an interceptor factory to every method on the component.
|
void |
addComponentInterceptor(Method method,
org.jboss.invocation.InterceptorFactory factory,
int priority)
Adds an interceptor factory to a given method.
|
void |
addComponentInterceptors(List<org.jboss.invocation.InterceptorFactory> factory,
int priority,
boolean publicOnly)
Adds an interceptor factory to every method on the component.
|
void |
addComponentInterceptors(Method method,
List<org.jboss.invocation.InterceptorFactory> factory,
int priority)
Adds an interceptor factory to a given method.
|
void |
addLifecycleMethod(Method method)
Adds a lifecycle method to the lifecycle methods set
|
void |
addPostActivateInterceptor(org.jboss.invocation.InterceptorFactory interceptorFactory,
int priority)
Adds a post activate interceptor
|
void |
addPostActivateInterceptors(List<org.jboss.invocation.InterceptorFactory> interceptorFactory,
int priority)
Adds a post activate interceptor
|
void |
addPostConstructInterceptor(org.jboss.invocation.InterceptorFactory interceptorFactory,
int priority)
Adds a post construct interceptor
|
void |
addPostConstructInterceptors(List<org.jboss.invocation.InterceptorFactory> interceptorFactory,
int priority)
Adds a post construct interceptor
|
void |
addPreDestroyInterceptor(org.jboss.invocation.InterceptorFactory interceptorFactory,
int priority)
Adds a pre destroy interceptor
|
void |
addPreDestroyInterceptors(List<org.jboss.invocation.InterceptorFactory> factories,
int priority)
Adds a pre destroy interceptor
|
void |
addPrePassivateInterceptor(org.jboss.invocation.InterceptorFactory interceptorFactory,
int priority)
Adds a pre passivate interceptor
|
void |
addPrePassivateInterceptors(List<org.jboss.invocation.InterceptorFactory> factories,
int priority)
Adds a pre passivate interceptor
|
void |
addTimeoutViewInterceptor(org.jboss.invocation.InterceptorFactory factory,
int priority)
Adds a timeout interceptor factory to every method on the component.
|
void |
addTimeoutViewInterceptor(Method method,
org.jboss.invocation.InterceptorFactory factory,
int priority)
Adds a timeout interceptor factory to every method on the component.
|
String |
getApplicationName()
Get the application name.
|
List<org.jboss.invocation.InterceptorFactory> |
getAroundConstructInterceptors()
Get the around-construct interceptors.
|
List<org.jboss.invocation.InterceptorFactory> |
getAroundTimeoutInterceptors(Method method)
Gets the around timeout interceptor list for a given method.
|
org.jboss.as.server.deployment.reflect.ClassReflectionIndex |
getClassIndex() |
Class<?> |
getComponentClass()
Get the component class.
|
ComponentCreateServiceFactory |
getComponentCreateServiceFactory()
Get the component create service factory for this component.
|
ComponentDescription |
getComponentDescription()
Get the component description.
|
List<org.jboss.invocation.InterceptorFactory> |
getComponentInterceptors(Method method)
Gets the interceptor list for a given method.
|
String |
getComponentName()
Get the component name.
|
ConcurrentContext |
getConcurrentContext() |
List<DependencyConfigurator<? extends org.jboss.msc.service.Service<Component>>> |
getCreateDependencies()
Get the create dependencies list.
|
Set<Method> |
getDefinedComponentMethods()
Get the set of currently known component methods.
|
ComponentFactory |
getInstanceFactory()
Get the instance factory for this component.
|
Set<Object> |
getInterceptorContextKeys() |
Set<Method> |
getLifecycleMethods()
Returns a set of all lifecycle methods defined on the bean
|
ClassLoader |
getModuleClassLoader() |
org.jboss.modules.ModuleLoader |
getModuleLoader() |
String |
getModuleName()
Get the module name.
|
org.jboss.invocation.InterceptorFactory |
getNamespaceContextInterceptorFactory() |
NamespaceContextSelector |
getNamespaceContextSelector() |
List<org.jboss.invocation.InterceptorFactory> |
getPostActivateInterceptors()
Get the post-activate interceptors.
|
List<org.jboss.invocation.InterceptorFactory> |
getPostConstructInterceptors()
Get the post-construct interceptors.
|
List<org.jboss.invocation.InterceptorFactory> |
getPreDestroyInterceptors()
Get the pre-destroy interceptors.
|
List<org.jboss.invocation.InterceptorFactory> |
getPrePassivateInterceptors()
Get the pre-passivate interceptors.
|
List<DependencyConfigurator<ComponentStartService>> |
getStartDependencies()
Get the start dependencies list.
|
List<ViewConfiguration> |
getViews()
Get the list of views for this component.
|
void |
setComponentCreateServiceFactory(ComponentCreateServiceFactory componentCreateServiceFactory)
Set the component create service factory for this component.
|
void |
setInstanceFactory(ComponentFactory instanceFactory)
Set the instance factory for this component.
|
void |
setNamespaceContextInterceptorFactory(org.jboss.invocation.InterceptorFactory interceptorFactory) |
void |
setNamespaceContextSelector(NamespaceContextSelector namespaceContextSelector) |
String |
toString() |
public ComponentConfiguration(ComponentDescription componentDescription, org.jboss.as.server.deployment.reflect.ClassReflectionIndex classIndex, ClassLoader moduleClassLoader, org.jboss.modules.ModuleLoader moduleLoader)
public ComponentDescription getComponentDescription()
public Class<?> getComponentClass()
public String getComponentName()
public Set<Method> getDefinedComponentMethods()
public List<org.jboss.invocation.InterceptorFactory> getComponentInterceptors(Method method)
method - the component methodpublic List<org.jboss.invocation.InterceptorFactory> getAroundTimeoutInterceptors(Method method)
method - the component methodpublic void addComponentInterceptor(org.jboss.invocation.InterceptorFactory factory,
int priority,
boolean publicOnly)
factory - The interceptor factory to addpriority - The interceptors relative orderpublicOnly - If true then then interceptor is only added to public methodspublic void addComponentInterceptors(List<org.jboss.invocation.InterceptorFactory> factory, int priority, boolean publicOnly)
factory - The interceptor factory to addpriority - The interceptors relative orderpublicOnly - If true then then interceptor is only added to public methodspublic void addComponentInterceptor(Method method, org.jboss.invocation.InterceptorFactory factory, int priority)
DeploymentReflectionIndex or from getDefinedComponentMethods(),
as the methods are stored in an identity hash mapmethod - The method to add the interceptor tofactory - The interceptor factory to addpriority - The interceptors relative orderpublic void addComponentInterceptors(Method method, List<org.jboss.invocation.InterceptorFactory> factory, int priority)
DeploymentReflectionIndex or from getDefinedComponentMethods(),
as the methods are stored in an identity hash mapmethod - The method to add the interceptor tofactory - The interceptor factory to addpriority - The interceptors relative orderpublic void addTimeoutViewInterceptor(org.jboss.invocation.InterceptorFactory factory,
int priority)
factory - The interceptor factory to addpriority - The interceptors relative orderpublic void addTimeoutViewInterceptor(Method method, org.jboss.invocation.InterceptorFactory factory, int priority)
method - The method to add it tofactory - The interceptor factory to addpriority - The interceptors relative orderpublic List<DependencyConfigurator<? extends org.jboss.msc.service.Service<Component>>> getCreateDependencies()
public List<DependencyConfigurator<ComponentStartService>> getStartDependencies()
public List<ViewConfiguration> getViews()
public List<org.jboss.invocation.InterceptorFactory> getAroundConstructInterceptors()
public void addAroundConstructInterceptors(List<org.jboss.invocation.InterceptorFactory> factories, int priority)
factories - The interceptors to addpriority - The prioritypublic void addAroundConstructInterceptor(org.jboss.invocation.InterceptorFactory interceptorFactory,
int priority)
interceptorFactory - The interceptor to addpriority - The prioritypublic List<org.jboss.invocation.InterceptorFactory> getPostConstructInterceptors()
public void addPostConstructInterceptors(List<org.jboss.invocation.InterceptorFactory> interceptorFactory, int priority)
interceptorFactory - The interceptor to addpriority - The prioritypublic void addPostConstructInterceptor(org.jboss.invocation.InterceptorFactory interceptorFactory,
int priority)
interceptorFactory - The interceptor to addpriority - The prioritypublic List<org.jboss.invocation.InterceptorFactory> getPreDestroyInterceptors()
public void addPreDestroyInterceptors(List<org.jboss.invocation.InterceptorFactory> factories, int priority)
factories - The interceptor factory to addpriority - The factories prioritypublic void addPreDestroyInterceptor(org.jboss.invocation.InterceptorFactory interceptorFactory,
int priority)
interceptorFactory - The interceptor factory to addpriority - The factories prioritypublic List<org.jboss.invocation.InterceptorFactory> getPrePassivateInterceptors()
public void addPrePassivateInterceptors(List<org.jboss.invocation.InterceptorFactory> factories, int priority)
factories - The interceptor to addpriority - The prioritypublic void addPrePassivateInterceptor(org.jboss.invocation.InterceptorFactory interceptorFactory,
int priority)
interceptorFactory - The interceptor to addpriority - The prioritypublic List<org.jboss.invocation.InterceptorFactory> getPostActivateInterceptors()
public void addPostActivateInterceptors(List<org.jboss.invocation.InterceptorFactory> interceptorFactory, int priority)
interceptorFactory - The interceptor to addpriority - The prioritypublic void addPostActivateInterceptor(org.jboss.invocation.InterceptorFactory interceptorFactory,
int priority)
interceptorFactory - The interceptor to addpriority - The prioritypublic String getApplicationName()
public String getModuleName()
public ComponentFactory getInstanceFactory()
public void setInstanceFactory(ComponentFactory instanceFactory)
instanceFactory - the instance factorypublic org.jboss.as.server.deployment.reflect.ClassReflectionIndex getClassIndex()
public ComponentCreateServiceFactory getComponentCreateServiceFactory()
public void setComponentCreateServiceFactory(ComponentCreateServiceFactory componentCreateServiceFactory)
componentCreateServiceFactory - the component create service factorypublic org.jboss.invocation.InterceptorFactory getNamespaceContextInterceptorFactory()
public void setNamespaceContextInterceptorFactory(org.jboss.invocation.InterceptorFactory interceptorFactory)
public ClassLoader getModuleClassLoader()
public org.jboss.modules.ModuleLoader getModuleLoader()
public NamespaceContextSelector getNamespaceContextSelector()
public void setNamespaceContextSelector(NamespaceContextSelector namespaceContextSelector)
public ConcurrentContext getConcurrentContext()
public void addLifecycleMethod(Method method)
method - The lifecycle methodCopyright © 2021 JBoss by Red Hat. All rights reserved.