本文整理了Java中org.oasisopen.sca.annotation.Service
类的一些代码示例,展示了Service
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Service
类的具体详情如下:
包路径:org.oasisopen.sca.annotation.Service
类名称:Service
暂无
代码示例来源:origin: org.codehaus.service-conduit/sca4j-spi
/**
* Empty interface for a service component that has no operations.
* This can be used as a default service interface by components that
* do not wish the base class to be used as the interface as specified
* by the defaulting rules.
*
* @version $Rev: 1 $ $Date: 2007-05-14 18:40:37 +0100 (Mon, 14 May 2007) $
*/
@Service(value={VoidService.class})
public interface VoidService {
}
代码示例来源:origin: com.carecon.fabric3/fabric3-introspection-java
public void visitType(org.oasisopen.sca.annotation.Service annotation, Class<?> type, InjectingComponentType componentType, IntrospectionContext context) {
Class<?>[] services = annotation.value();
String[] names = annotation.names();
for (int i = 0; i < services.length; i++) {
Class<?> service = services[i];
componentType.add(createDefinition(service, names.length == 0 ? service.getSimpleName() : names[i], type, componentType, context));
}
}
代码示例来源:origin: org.apache.tuscany.sca/tuscany-databinding-json
@Service(Transformer.class)
public class JSON2OMElement extends BaseTransformer<Object, OMElement> implements PullTransformer<Object, OMElement> {
代码示例来源:origin: org.codehaus.fabric3/fabric3-introspection-java
public void visitType(Service annotation, Class<?> type, InjectingComponentType componentType, IntrospectionContext context) {
for (Class<?> service : annotation.names()) {
ServiceDefinition definition = createDefinition(service, type, componentType, context);
componentType.add(definition);
}
Class<?> service = annotation.value();
if (!Void.class.equals(service)) {
ServiceDefinition definition = createDefinition(service, type, componentType, context);
componentType.add(definition);
}
}
代码示例来源:origin: com.carecon.fabric3/fabric3-jpa-hibernate
@Service(OverrideRegistry.class)
public class OverrideRegistryImpl implements OverrideRegistry, ContributionServiceListener {
private Map<URI, List<PersistenceOverrides>> index = new ConcurrentHashMap<>();
代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime
if (annotation.value().length == 0) {
throw new IntrospectionException("[JCA90059] The array of interfaces or classes specified by the value attribute of the @Service annotation MUST contain at least one element");
Class<?>[] interfaces = annotation.value();
if (annotation.names().length > 0) {
if (annotation.names().length != interfaces.length) {
throw new IntrospectionException("[JCA90050] The number of Strings in the names attribute array of the @Service annotation MUST match the number of elements in the value attribute array");
names.addAll(Arrays.asList(annotation.names()));
if (names.size() != annotation.names().length) {
throw new IntrospectionException("[JCA90060] The value of each element in the @Service names array MUST be unique amongst all the other element values in the array");
String name = (annotation.names().length > 0) ? annotation.names()[i] : null;
Service service = createService(clazz, interfaces[i], name);
type.getServices().add(service);
代码示例来源:origin: org.fabric3/fabric3-jpa-hibernate
@Service(OverrideRegistry.class)
public class OverrideRegistryImpl implements OverrideRegistry, ContributionServiceListener {
private Map<URI, List<PersistenceOverrides>> index = new ConcurrentHashMap<>();
代码示例来源:origin: org.codehaus.fabric3/fabric3-jpa-hibernate
@Service(OverrideRegistry.class)
public class OverrideRegistryImpl implements OverrideRegistry, ContributionServiceListener {
private Map<URI, List<PersistenceOverrides>> index = new ConcurrentHashMap<URI, List<PersistenceOverrides>>();
代码示例来源:origin: org.fabric3/fabric3-management-jmx-agent
@Service(DelegatingJmxAuthenticator.class)
public class DelegatingJmxAuthenticator implements JMXAuthenticator {
private JmxSecurity security = JmxSecurity.DISABLED;
代码示例来源:origin: org.codehaus.fabric3/fabric3-management-jmx-agent
@Service(DelegatingJmxAuthenticator.class)
public class DelegatingJmxAuthenticator implements JMXAuthenticator {
private JmxSecurity security = JmxSecurity.DISABLED;
代码示例来源:origin: org.codehaus.fabric3/fabric3-spring-security
@Service(names = {AuthenticationManager.class, AuthenticationService.class})
public class Fabric3ProviderManager extends ProviderManager implements AuthenticationService {
private AuthenticationProviderFactory factory;
代码示例来源:origin: org.codehaus.fabric3/fabric3-spring-security
@Service(names = {AccessDecisionManager.class, AuthorizationService.class})
public class Fabric3AccessDecisionManager extends AbstractAccessDecisionManager implements AuthorizationService {
private String managerType = "affirmative";
代码示例来源:origin: com.carecon.fabric3/fabric3-binding-ws
@Service(InterfaceGenerator.class)
public class InterfaceGeneratorImpl implements InterfaceGenerator, Opcodes {
private static final String SUFFIX = "F3Subtype";
代码示例来源:origin: com.carecon.fabric3/fabric3-jpa-hibernate
@Service({EntityManagerFactoryCache.class, ContributionServiceListener.class})
public class DefaultEntityManagerFactoryCache implements EntityManagerFactoryCache, ContributionServiceListener {
private ClassLoaderRegistry classLoaderRegistry;
代码示例来源:origin: org.fabric3/fabric3-jpa-hibernate
@Service({EntityManagerFactoryCache.class, ContributionServiceListener.class})
public class DefaultEntityManagerFactoryCache implements EntityManagerFactoryCache, ContributionServiceListener {
private ClassLoaderRegistry classLoaderRegistry;
代码示例来源:origin: org.fabric3/fabric3-binding-ws-metro
@Service(InterfaceGenerator.class)
public class InterfaceGeneratorImpl implements InterfaceGenerator, Opcodes {
private static final String SUFFIX = "F3Subtype";
代码示例来源:origin: org.codehaus.fabric3/fabric3-fabric
/**
* Managed composite-scoped components. Composite-scoped components have one instance per runtime where the component's parent composite is deployed.
*/
@EagerInit
@Service(ScopeContainer.class)
public class CompositeScopeContainer extends SingletonScopeContainer {
public CompositeScopeContainer(@Monitor ScopeContainerMonitor monitor) {
super(Scope.COMPOSITE, monitor);
}
}
代码示例来源:origin: org.codehaus.fabric3/fabric3-jpa-hibernate
@Service(names = {EntityManagerFactoryCache.class, ClassLoaderListener.class})
public class DefaultEntityManagerFactoryCache implements EntityManagerFactoryCache, ClassLoaderListener {
private CacheMonitor monitor;
代码示例来源:origin: com.carecon.fabric3/fabric3-fabric
/**
* Managed composite-scoped components. Composite-scoped components have one instance per runtime where the component's parent composite is deployed.
*/
@EagerInit
@Service(ScopeContainer.class)
public class CompositeScopeContainer extends SingletonScopeContainer {
public CompositeScopeContainer(@Monitor ScopeContainerMonitor monitor) {
super(Scope.COMPOSITE, monitor);
}
}
代码示例来源:origin: org.fabric3/fabric3-fabric
/**
* Managed composite-scoped components. Composite-scoped components have one instance per runtime where the component's parent composite is deployed.
*/
@EagerInit
@Service(ScopeContainer.class)
public class CompositeScopeContainer extends SingletonScopeContainer {
public CompositeScopeContainer(@Monitor ScopeContainerMonitor monitor) {
super(Scope.COMPOSITE, monitor);
}
}
内容来源于网络,如有侵权,请联系作者删除!