public class ComponentConfiguration extends Object
Constructor and Description |
---|
ComponentConfiguration(ComponentDescription componentDescription,
ClassIndex classIndex,
ClassLoader moduleClassLoder,
org.jboss.modules.ModuleLoader moduleLoader) |
Modifier and Type | Method and Description |
---|---|
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 |
addPostActivateInterceptor(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 |
addPreDestroyInterceptor(org.jboss.invocation.InterceptorFactory interceptorFactory,
int priority)
Adds a pre destroy interceptor
|
void |
addPrePassivateInterceptor(org.jboss.invocation.InterceptorFactory interceptorFactory,
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> |
getAroundTimeoutInterceptors(Method method)
Gets the around timeout interceptor list for a given method.
|
ClassIndex |
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.
|
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.
|
ManagedReferenceFactory |
getInstanceFactory()
Get the instance factory for this component.
|
Set<Object> |
getInterceptorContextKeys() |
ClassLoader |
getModuleClassLoder() |
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(ManagedReferenceFactory 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, ClassIndex classIndex, ClassLoader moduleClassLoder, 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 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 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> getPostConstructInterceptors()
public void addPostConstructInterceptor(org.jboss.invocation.InterceptorFactory interceptorFactory, int priority)
interceptorFactory
- The interceptor to addpriority
- The prioritypublic List<org.jboss.invocation.InterceptorFactory> getPreDestroyInterceptors()
public 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 addPrePassivateInterceptor(org.jboss.invocation.InterceptorFactory interceptorFactory, int priority)
interceptorFactory
- The interceptor to addpriority
- The prioritypublic List<org.jboss.invocation.InterceptorFactory> getPostActivateInterceptors()
public void addPostActivateInterceptor(org.jboss.invocation.InterceptorFactory interceptorFactory, int priority)
interceptorFactory
- The interceptor to addpriority
- The prioritypublic String getApplicationName()
public String getModuleName()
public ManagedReferenceFactory getInstanceFactory()
public void setInstanceFactory(ManagedReferenceFactory instanceFactory)
instanceFactory
- the instance factorypublic ClassIndex 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 getModuleClassLoder()
public org.jboss.modules.ModuleLoader getModuleLoader()
public NamespaceContextSelector getNamespaceContextSelector()
public void setNamespaceContextSelector(NamespaceContextSelector namespaceContextSelector)
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.