@Init public void init() { // introspect the interface once contract = contractProcessor.introspect(DataSource.class, new DefaultIntrospectionContext()); }
private JavaServiceContract introspectInterface(Class<?> interfaze, Class<?> baseClass, IntrospectionContext context, ModelObject... modelObjects) { JavaServiceContract contract = new JavaServiceContract(interfaze); contract.setInterfaceName(interfaze.getSimpleName()); boolean remotable = interfaze.isAnnotationPresent(org.oasisopen.sca.annotation.Remotable.class) || interfaze.isAnnotationPresent(Remotable.class); contract.setRemotable(remotable); List<Operation> operations = introspectOperations(interfaze, baseClass, remotable, context, modelObjects); contract.setOperations(operations); for (InterfaceIntrospector introspector : interfaceIntrospectors) { introspector.introspect(contract, interfaze, context); } return contract; }
@Init public void init() { // introspect the interface once contract = contractProcessor.introspect(DataSource.class, new DefaultIntrospectionContext()); }
private Service<ComponentType> createServiceDefinition(Class<?> serviceInterface, InjectingComponentType componentType, IntrospectionContext context) { ServiceContract contract = contractProcessor.introspect(serviceInterface, context, componentType); return new Service<>(contract.getInterfaceName(), contract); } }
@Init public void init() { // introspect the interface once contract = contractProcessor.introspect(ExecutorService.class, new DefaultIntrospectionContext()); }
@Init public void init() { // introspect the interface once contract = contractProcessor.introspect(DataSource.class, new DefaultIntrospectionContext()); }
@Init public void init() { // introspect the interface once contract = contractProcessor.introspect(DataSource.class, new DefaultIntrospectionContext()); }
@SuppressWarnings({"unchecked"}) private Service createDefinition(Class<?> service, String name, Class<?> implClass, InjectingComponentType componentType, IntrospectionContext context) { ServiceContract serviceContract = contractProcessor.introspect(service, implClass, context, componentType); Service definition = new Service(name, serviceContract); if (policyIntrospector != null) { policyIntrospector.introspectPolicyOnOperations(serviceContract, implClass, context); } return definition; } }
@Init public void init() { // introspect the interface once contract = contractProcessor.introspect(ConcurrentMap.class, new DefaultIntrospectionContext()); }
public PersistenceContextProcessor(@Reference JavaContractProcessor contractProcessor) { super(PersistenceContext.class); IntrospectionContext context = new DefaultIntrospectionContext(); factoryServiceContract = contractProcessor.introspect(EntityManager.class, context); assert !context.hasErrors(); // should not happen }
private Callback createDefinition(String name, Type type, Class<?> implClass, InjectingComponentType componentType, IntrospectionContext context) { TypeMapping typeMapping = context.getTypeMapping(implClass); Class<?> baseType = helper.getBaseType(type, typeMapping); ServiceContract contract = contractProcessor.introspect(baseType, implClass, context, componentType); return new Callback(name, contract); }
public PersistenceUnitProcessor(@Reference JavaContractProcessor contractProcessor) { super(PersistenceUnit.class); IntrospectionContext context = new DefaultIntrospectionContext(); factoryServiceContract = contractProcessor.introspect(EntityManagerFactory.class, context); assert !context.hasErrors(); // should not happen }
private CallbackDefinition createDefinition(String name, Type type, Class<?> implClass, InjectingComponentType componentType, IntrospectionContext context) { TypeMapping typeMapping = context.getTypeMapping(implClass); Class<?> baseType = helper.getBaseType(type, typeMapping); ServiceContract contract = contractProcessor.introspect(baseType, implClass, context, componentType); return new CallbackDefinition(name, contract); }
public void visitType(Remotable annotation, Class<?> type, InjectingComponentType componentType, IntrospectionContext context) { ServiceContract serviceContract = contractProcessor.introspect(type, context, componentType); ServiceDefinition definition = new ServiceDefinition(serviceContract.getInterfaceName(), serviceContract); componentType.add(definition); } }
public PersistenceContextProcessor(@Reference JavaContractProcessor contractProcessor, @Reference IntrospectionHelper helper) { super(PersistenceContext.class); this.helper = helper; IntrospectionContext context = new DefaultIntrospectionContext(); factoryServiceContract = contractProcessor.introspect(EntityManager.class, context); assert !context.hasErrors(); // should not happen }
public ChannelAnnotationProcessor(@Reference JavaContractProcessor contractProcessor, @Reference IntrospectionHelper helper) { super(Channel.class); this.helper = helper; IntrospectionContext context = new DefaultIntrospectionContext(); contextContract = contractProcessor.introspect(ChannelContext.class, context); assert !context.hasErrors(); // should not happen }
public ChannelAnnotationProcessor(@Reference JavaContractProcessor contractProcessor, @Reference IntrospectionHelper helper) { super(Channel.class); this.helper = helper; IntrospectionContext context = new DefaultIntrospectionContext(); contextContract = contractProcessor.introspect(ChannelContext.class, context); assert !context.hasErrors(); // should not happen }
public PersistenceContextProcessor(@Reference JavaContractProcessor contractProcessor, @Reference IntrospectionHelper helper) { super(PersistenceContext.class); this.helper = helper; IntrospectionContext context = new DefaultIntrospectionContext(); factoryServiceContract = contractProcessor.introspect(EntityManager.class, context); assert !context.hasErrors(); // should not happen }
public PersistenceContextProcessor(@Reference JavaContractProcessor contractProcessor, @Reference IntrospectionHelper helper) { super(PersistenceContext.class); this.helper = helper; IntrospectionContext context = new DefaultIntrospectionContext(); factoryServiceContract = contractProcessor.introspect(EntityManager.class, context); assert !context.hasErrors(); // should not happen }
public JpaImplementationLoader(@Reference JavaImplementationProcessor implementationProcessor, @Reference JavaContractProcessor contractProcessor) { this.implementationProcessor = implementationProcessor; IntrospectionContext context = new DefaultIntrospectionContext(); factoryServiceContract = contractProcessor.introspect(EntityManager.class, context); assert !context.hasErrors(); // should not happen }