Package org.jboss.as.ee.component
Class ReflectiveClassIntrospector
- java.lang.Object
-
- org.jboss.as.ee.component.ReflectiveClassIntrospector
-
- All Implemented Interfaces:
EEClassIntrospector,org.jboss.msc.Service,org.jboss.msc.service.Service<EEClassIntrospector>,org.jboss.msc.value.Value<EEClassIntrospector>
public class ReflectiveClassIntrospector extends Object implements EEClassIntrospector, org.jboss.msc.service.Service<EEClassIntrospector>
- Author:
- Stuart Douglas
-
-
Field Summary
Fields Modifier and Type Field Description static RuntimePermissionCHECK_MEMBER_ACCESS_PERMISSIONstatic org.jboss.msc.service.ServiceNameSERVICE_NAME
-
Constructor Summary
Constructors Constructor Description ReflectiveClassIntrospector()Constructs a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ManagedReferenceFactorycreateFactory(Class<?> clazz)ManagedReferencecreateInstance(Object instance)Returns the managed reference of an new instance.ManagedReferencegetInstance(Object instance)Returns the managed reference of an existing instance.EEClassIntrospectorgetValue()voidstart(org.jboss.msc.service.StartContext startContext)voidstop(org.jboss.msc.service.StopContext stopContext)
-
-
-
Field Detail
-
SERVICE_NAME
public static final org.jboss.msc.service.ServiceName SERVICE_NAME
-
CHECK_MEMBER_ACCESS_PERMISSION
public static final RuntimePermission CHECK_MEMBER_ACCESS_PERMISSION
-
-
Constructor Detail
-
ReflectiveClassIntrospector
public ReflectiveClassIntrospector()
Constructs a new instance.- Throws:
SecurityException- if the security manager is present and the runtimeaccessDeclaredMembersaccess is not granted
-
-
Method Detail
-
createFactory
public ManagedReferenceFactory createFactory(Class<?> clazz)
- Specified by:
createFactoryin interfaceEEClassIntrospector
-
createInstance
public ManagedReference createInstance(Object instance)
Description copied from interface:EEClassIntrospectorReturns the managed reference of an new instance.- Specified by:
createInstancein interfaceEEClassIntrospector- Parameters:
instance- an object instance- Returns:
- a managed reference
-
getInstance
public ManagedReference getInstance(Object instance)
Description copied from interface:EEClassIntrospectorReturns the managed reference of an existing instance.- Specified by:
getInstancein interfaceEEClassIntrospector- Parameters:
instance- an object instance- Returns:
- a managed reference
-
start
public void start(org.jboss.msc.service.StartContext startContext) throws org.jboss.msc.service.StartException- Specified by:
startin interfaceorg.jboss.msc.Service- Throws:
org.jboss.msc.service.StartException
-
stop
public void stop(org.jboss.msc.service.StopContext stopContext)
- Specified by:
stopin interfaceorg.jboss.msc.Service
-
getValue
public EEClassIntrospector getValue() throws IllegalStateException, IllegalArgumentException
- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<EEClassIntrospector>- Throws:
IllegalStateExceptionIllegalArgumentException
-
-