Class RoleEntryImpl
java.lang.Object
org.apache.fulcrum.yaafi.framework.role.RoleEntryImpl
- All Implemented Interfaces:
RoleEntry
Interface exposed by the ServiceContainerImpl
- Author:
- Siegfried Goeschl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInterceptors(Collection<?> collection) Adds all given interceptors but avoiding duplicates.String[]getName()booleanbooleanhasInterceptor(String interceptorName) Determines if the given name of the interceptor is already defined.booleanvoidsetHasDynamicProxy(boolean hasProxy) toString()
-
Constructor Details
-
RoleEntryImpl
public RoleEntryImpl(String name, String defaultClass, String shorthand, boolean earlyInit, String description, String componentType, String componentFlavour, boolean hasProxy, ArrayList<String> interceptorList, String logCategory) YAAFI role entry- Parameters:
name- the name of the service component to be used for the service lookupdefaultClass- the name of the implementation class of the service componentshorthand- the short name of the service componentearlyInit- do we incarnate the instance of the service component during start-up?description- a description for the service component if anycomponentType- the type of service componentcomponentFlavour- the flavour of the gicen component typehasProxy- create a dynamic proxyinterceptorList- the list of service interceptor to be invokedlogCategory- the category for creating the logger
-
-
Method Details
-
getComponentType
- Specified by:
getComponentTypein interfaceRoleEntry- Returns:
- Returns the componentType.
-
getDescription
- Specified by:
getDescriptionin interfaceRoleEntry- Returns:
- Returns the description.
-
getImplementationClazzName
- Specified by:
getImplementationClazzNamein interfaceRoleEntry- Returns:
- Returns the implementationClazzName.
-
isEarlyInit
public boolean isEarlyInit()- Specified by:
isEarlyInitin interfaceRoleEntry- Returns:
- Returns the isEarlyInit.
-
getName
-
getShorthand
- Specified by:
getShorthandin interfaceRoleEntry- Returns:
- Returns the shorthand.
-
getComponentFlavour
- Specified by:
getComponentFlavourin interfaceRoleEntry- Returns:
- Returns the componentFlavour.
-
hasDynamicProxy
public boolean hasDynamicProxy()- Specified by:
hasDynamicProxyin interfaceRoleEntry- Returns:
- Returns the hasDynamicProxy.
-
setHasDynamicProxy
public void setHasDynamicProxy(boolean hasProxy) - Specified by:
setHasDynamicProxyin interfaceRoleEntry- Parameters:
hasProxy- The hasDynamicProxy to set.
-
hasInterceptor
Determines if the given name of the interceptor is already defined.- Parameters:
interceptorName- the name of the interceptor- Returns:
- true if it is already defined
-
addInterceptors
Adds all given interceptors but avoiding duplicates.- Specified by:
addInterceptorsin interfaceRoleEntry- Parameters:
collection- the interceptors to be added
-
getInterceptorList
- Specified by:
getInterceptorListin interfaceRoleEntry- Returns:
- Returns the interceptorList.
-
getLogCategory
- Specified by:
getLogCategoryin interfaceRoleEntry- Returns:
- Returns the logCategory.
-
toString
-