本文整理了Java中org.apache.tomcat.util.modeler.Registry.<init>
方法的一些代码示例,展示了Registry.<init>
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Registry.<init>
方法的具体详情如下:
包路径:org.apache.tomcat.util.modeler.Registry
类名称:Registry
方法名:<init>
暂无
代码示例来源:origin: stackoverflow.com
public static void main (String[] args)
{
//Create the registry object
RegistryInterface theRegistry = new Registry();
//Display the menu
theRegistry.doMenu();
//etc...
代码示例来源:origin: stackoverflow.com
class Bean{
Registry registry = new Registry();
public Registry getRegistry() {
return registry;
}
}
代码示例来源:origin: org.apache.meecrowave/meecrowave-core
private void setupJmx(final boolean skip) {
try {
final Field registry = Registry.class.getDeclaredField("registry");
registry.setAccessible(true);
registry.set(null, skip ? new NoDescriptorRegistry() : new Registry());
} catch (final Exception e) {
throw new IllegalStateException(e);
}
}
代码示例来源:origin: stackoverflow.com
private final Registry registry = new Registry();
private final Serializer serializer = new Persister(new RegistryStrategy(registry));
....
registry.bind(XMLEvents.class, new XMLEventsConverter(serializer));
代码示例来源:origin: apache/meecrowave
private void setupJmx(final boolean skip) {
try {
final Field registry = Registry.class.getDeclaredField("registry");
registry.setAccessible(true);
registry.set(null, skip ? new NoDescriptorRegistry() : new Registry());
} catch (final Exception e) {
throw new IllegalStateException(e);
}
}
代码示例来源:origin: stackoverflow.com
private < T extends Box > void getParserAndParse(
Registry registry, Class< T > clazz, Object box
) {
registry.get( clazz ).parse( clazz.cast( box ) );
}
public void runTest() {
Registry registry = new Registry();
registry.add( BoxA.class, new ParserA() );
registry.add( BoxB.class, new ParserB() );
List<Box> boxes = new ArrayList< Box >();
boxes.add( new BoxA( "Silly" ) );
boxes.add( new BoxB( "Funny" ) );
boxes.add( new BoxB( "Foo" ) );
boxes.add( new BoxA( "Bar" ) );
for ( Box box : boxes ) {
Class< ? extends Box > clazz = box.getClass();
getParserAndParse( registry, clazz, box ); // compiles
}
}
代码示例来源:origin: jboss.web/jbossweb
localRegistry=(Registry)perLoaderRegistries.get(key);
if( localRegistry == null ) {
localRegistry=new Registry();
registry = new Registry();
代码示例来源:origin: codefollower/Tomcat-Research
localRegistry = perLoaderRegistries.get(key);
if( localRegistry == null ) {
localRegistry=new Registry();
registry = new Registry();
代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7
localRegistry = perLoaderRegistries.get(key);
if( localRegistry == null ) {
localRegistry=new Registry();
registry = new Registry();
代码示例来源:origin: org.apache.coyote/com.springsource.org.apache.coyote
localRegistry = perLoaderRegistries.get(key);
if( localRegistry == null ) {
localRegistry=new Registry();
registry = new Registry();
代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core
localRegistry = perLoaderRegistries.get(key);
if (localRegistry == null) {
localRegistry = new Registry();
registry = new Registry();
代码示例来源:origin: org.jboss.web/jbossweb
localRegistry=(Registry)perLoaderRegistries.get(key);
if( localRegistry == null ) {
localRegistry=new Registry();
registry = new Registry();
代码示例来源:origin: org.apache.geronimo.ext.tomcat/util
localRegistry = perLoaderRegistries.get(key);
if( localRegistry == null ) {
localRegistry=new Registry();
registry = new Registry();
代码示例来源:origin: org.apache.coyote.springsource/com.springsource.org.apache.coyote.springsource
localRegistry=(Registry)perLoaderRegistries.get(key);
if( localRegistry == null ) {
localRegistry=new Registry();
registry = new Registry();
代码示例来源:origin: stackoverflow.com
Registry reg = new Registry();
RegistryKey topKey = Registry.HKEY_CURRENT_USER;
RegistryKey rk = topKey.openSubKey("Software\\Sparx Systems\\EA400\\EA");
String path = rk.getStringValue("Install Path");
代码示例来源:origin: stackoverflow.com
public class TestArrayList {
public static void main(String[] args){
Registry reg = new Registry();
reg.addNum(11);
reg.addNum(22);
}
}
代码示例来源:origin: stackoverflow.com
Registry registry = new Registry();
内容来源于网络,如有侵权,请联系作者删除!