本文整理了Java中org.jvnet.hk2.annotations.Contract
类的一些代码示例,展示了Contract
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Contract
类的具体详情如下:
包路径:org.jvnet.hk2.annotations.Contract
类名称:Contract
暂无
代码示例来源:origin: javaee/glassfish
@Contract
public interface DomDecorator<T extends Dom> {
public Dom decorate(ServiceLocator habitat, DomDocument document, T parent, ConfigModel model, XMLStreamReader in);
}
代码示例来源:origin: javaee/glassfish
/**
* Populates {@link Habitat}.
*
* {@link Populator} gets to run right after the {@link Habitat} is
* created. Implementations can use this timing to introduce
* additional inhabitants, for example by loading some config file.
*
* @author Kohsuke Kawaguchi
*/
@Contract
public interface Populator {
public void run(ConfigParser parser) throws ConfigPopulatorException;
}
代码示例来源:origin: javaee/glassfish
@Contract
public interface ConfigExtensionHandler<T extends ConfigBeanProxy> {
public T handleExtension(Object owner, Class<T> extensionType, Object[] params);
}
代码示例来源:origin: javaee/glassfish
/**
* Provides {@link Configured} bean integration with
* external configuration systems and providers.
*
* @author Jeff Trent
*/
@Contract
public interface ConfigTransactionFactory {
/**
* Gets the active transaction, optionally creating
* a new transaction if no transaction is active.
*
* @param create
* indicates that a new transaction should be
* started if no active transaction open yet
* @return the ConfigTransaction
*/
ConfigTransaction getActiveTransaction(boolean create);
}
代码示例来源:origin: javaee/glassfish
/**
* Listener interface for objects interested in transaction events on the config beans.
*
* @author Jerome Dochez
*/
@Contract
public interface TransactionListener {
/**
* Notification of a transaction with the list of property changes.
*
* @param changes
*/
public void transactionCommited(List<PropertyChangeEvent> changes);
/**
* Nofication of unprocessed events by ConfigListener, usually requiring a server
* restart.
*
* @param changes
*/
public void unprocessedTransactedEvents(List<UnprocessedChangeEvents> changes);
}
代码示例来源:origin: javaee/glassfish
/**
* Denotes the <code>type</code> of the data a particular config
* element (attribute, element) should have. This interface should be
* implemented whenever a need arises to check if
* an abstract data type can be represented as a given <code> String </code>.
* The implementations of a DataType are mapped by their <code> names </code> elsewhere.
* Implementations should provide functional implementation of the #validate method
* and must have a public parameterless constructor (except possibly for primitives).
*
* @author केदार (km@dev.java.net)
* @see PrimitiveDataType
* @see WriteableView
* @since hk2 0.3.10
*/
@Contract
public interface DataType {
/** Checks if given value can be had by the abstract data type represented
* by this implementation.
* @param value String representing the value for this DataType
* @throws org.jvnet.hk2.config.ValidationException if given String does
* not represent this data type.
*/
public void validate(String value) throws ValidationException;
}
代码示例来源:origin: javaee/glassfish
/**
* @author jwells
*
*/
@Contract
public interface ConfigurationUtilities {
/**
* Adds this child bean to the parent with the given attributes. Does not
* start or end a configuration transaction
*
* @param param
* @param parent
* @param childType
* @param attributes
* @param runnable
* @return
* @throws TransactionFailure
*/
public Object addChildWithAttributes(ConfigBeanProxy param,
ConfigBean parent,
Class<? extends ConfigBeanProxy> childType,
List<AttributeChanges> attributes,
TransactionCallBack<WriteableView> runnable) throws TransactionFailure;
}
代码示例来源:origin: javaee/glassfish
@Contract
public interface PropertyBagCustomizer {
public static final String DEFAULT_IMPLEMENTATION = "system default";
代码示例来源:origin: javaee/glassfish
@Contract
public interface ConfigListener {
代码示例来源:origin: javaee/glassfish
@Contract
public interface ConfigBeanProxyCustomizer {
public static final String DEFAULT_IMPLEMENTATION = "system default";
代码示例来源:origin: javaee/glassfish
@Contract
public abstract class ConfigInjector<T> {
代码示例来源:origin: javaee/glassfish
@Contract
@Named(PropertyBagCustomizer.DEFAULT_IMPLEMENTATION)
public class PropertyBagCustomizerImpl implements PropertyBagCustomizer {
代码示例来源:origin: org.glassfish.main.common/glassfish-api
/**
* Implementations of this interface are responsible for servicing
* a file residing on the local file system to a Response object.
*
* @author Jerome Dochez
*/
@Contract
public interface FileServer {
}
代码示例来源:origin: org.glassfish.main.common/glassfish-api
/**
* Service interface to define the version info for an installed product.
*
*/
@Contract
public interface VersionInfo {
public String getAbbreviatedProductName();
public String getVersionPrefix();
public String getMajorVersion();
public String getMinorVersion();
}
代码示例来源:origin: org.glassfish.main.common/glassfish-api
/**
* This class is an alternative to ComponentInvocationHandler.
* This could be implemented by classes that are to be loaded independently of the
* web container.
*
*/
@Contract
public interface RegisteredComponentInvocationHandler{
public ComponentInvocationHandler getComponentInvocationHandler();
public void register();
}
代码示例来源:origin: org.glassfish.main.common/glassfish-api
/**
* @author Mahesh Kannan
* Date: Feb 28, 2008
*/
@Contract
public interface NamedNamingObjectProxy {
/**
* Returns the name that will be used to publish this object in the naming manager
* @return the name to bind
*/
public Object handle(String name) throws NamingException;
}
代码示例来源:origin: org.glassfish.deployment/dol
/**
* Defines a pluggability facility to retrieve annotation types from various
* containers.
*/
@Contract
public interface AnnotationTypesProvider {
public Class<? extends Annotation>[] getAnnotationTypes();
public Class getType(String typename) throws ClassNotFoundException;
}
代码示例来源:origin: org.glassfish.main.security/security
/**
*
* @author vbkumarjayanti
*/
@Contract
public interface CNonceCacheFactory {
public static final String CLUSTER_NAME_PROP="cluster_name";
public static final String INSTANCE_NAME_PROP="instance_name";
public CNonceCache createCNonceCache(String appName, String clusterName,
String instanceName, String storeName);
}
代码示例来源:origin: org.glassfish.main.ejb/ejb-internal-api
@Contract
public interface CMPDeployer {
void deploy(DeploymentContext ctx) throws DeploymentException;
void clean(DeploymentContext ctx);
void unload(ClassLoader cl);
String MODULE_CLASSPATH = "org.glassfish.ejb.spi.module.classpath";
}
代码示例来源:origin: org.glassfish.common/container-common
@Contract
public interface JavaEEContainerManager {
public void registerContainer(String componentId, JavaEEContainer container);
public void unregisterContainer(String componentId);
public JavaEEContainer getContainerFor(String componentId);
}
内容来源于网络,如有侵权,请联系作者删除!