本文整理了Java中org.granite.util.XMap.
方法的一些代码示例,展示了XMap.
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMap.
方法的具体详情如下:
包路径:org.granite.util.XMap
类名称:XMap
方法名:
[英]Constructs a new XMap instance.
[中]构造一个新的XMap实例。
代码示例来源:origin: org.graniteds/granite-server
@Override
protected Adapter buildAdapter() {
return new Adapter("jms-adapter", "org.granite.gravity.adapters.JMSServiceAdapter", new XMap());
}
代码示例来源:origin: org.ow2.kerneos.graniteds-osgi/granite-core
protected OSGiDestinationSimple() {
super(null, new ArrayList
}
代码示例来源:origin: org.graniteds/granite-server
@Override
protected Adapter buildAdapter() {
return new Adapter("activemq-adapter", "org.granite.gravity.adapters.ActiveMQServiceAdapter", new XMap());
}
代码示例来源:origin: org.graniteds/granite-server
protected Adapter buildAdapter() {
return new Adapter("simple-adapter", "org.granite.gravity.adapters.SimpleServiceAdapter", new XMap());
}
代码示例来源:origin: org.ow2.kerneos.graniteds-osgi/granite-core
protected OSGiDestinationFactory() {
super(null, new ArrayList
}
代码示例来源:origin: org.ow2.kerneos.graniteds-osgi/granite-core
protected OSGiDestinationAdapter() {
super(null, new ArrayList
}
代码示例来源:origin: org.graniteds/granite-server
protected Destination buildDestination() {
List
channelIds.add("graniteamf");
Destination destination = new Destination(source, channelIds, new XMap(), roles, null, null);
if (securizer != null)
destination.setSecurizer(securizer);
return destination;
}
}
代码示例来源:origin: org.graniteds/granite-server
private void loadConfig(InputStream configIs) throws IOException, SAXException {
XMap doc = new XMap(configIs);
forElement(doc);
}
代码示例来源:origin: org.graniteds/granite-client
private void loadConfig(InputStream configIs) throws IOException, SAXException {
XMap doc = new XMap(configIs);
forElement(doc);
}
代码示例来源:origin: org.graniteds/granite-server
protected Destination buildDestination(Adapter adapter) {
List
channelIds.add("gravityamf");
Destination destination = new Destination(id, channelIds, new XMap(), roles, adapter, null);
destination.getProperties().put("no-local", String.valueOf(noLocal));
destination.getProperties().put("session-selector", String.valueOf(sessionSelector));
if (getSecurizerClassName() != null)
destination.getProperties().put("securizer", securizerClassName);
if (getSecurizer() != null)
destination.setSecurizer(getSecurizer());
return destination;
}
}
代码示例来源:origin: org.graniteds/granite-client
public static Factory forElement(XMap element) {
String id = element.get("@id");
String className = element.get("@class");
XMap properties = new XMap(element.getOne("properties"));
return new Factory(id, className, properties);
}
}
代码示例来源:origin: org.graniteds/granite-server
public void initServices(ServicesConfig servicesConfig) {
Channel channel = servicesConfig.findChannelById("graniteamf");
if (channel == null) {
channel = new Channel("graniteamf", "mx.messaging.channels.AMFChannel",
new EndPoint("http://{server.name}:{server.port}/{context.root}/graniteamf/amf", "flex.messaging.endpoints.AMFEndpoint"),
new XMap());
servicesConfig.addChannel(channel);
}
List
Service service = null;
if (services == null || services.isEmpty()) {
service = new Service("granite-service", "flex.messaging.services.RemotingService", "flex.messaging.messages.RemotingMessage",
null, null, new HashMap
servicesConfig.addService(service);
}
else
service = services.get(0);
service.getDestinations().put(source, buildDestination());
log.info("Registered remote destination %s", source);
}
代码示例来源:origin: org.graniteds/granite-server
public static Factory forElement(XMap element) {
String id = element.get("@id");
String className = element.get("@class");
XMap properties = new XMap(element.getOne("properties"));
return new Factory(id, className, properties);
}
}
代码示例来源:origin: org.graniteds/granite-client
public static Adapter forElement(XMap element) {
String id = element.get("@id");
String className = element.get("@class");
XMap properties = new XMap(element.getOne("properties"));
return new Adapter(id, className, properties);
}
}
代码示例来源:origin: org.graniteds/granite-server
public static Adapter forElement(XMap element) {
String id = element.get("@id");
String className = element.get("@class");
XMap properties = new XMap(element.getOne("properties"));
return new Adapter(id, className, properties);
}
}
代码示例来源:origin: org.graniteds/granite-client
public static Channel forElement(XMap element) {
String id = element.get("@id");
String className = element.get("@class");
XMap endPointElt = element.getOne("endpoint");
if (endPointElt == null)
throw new RuntimeException("Excepting a 'endpoint' element in 'channel-definition': " + id);
EndPoint endPoint = EndPoint.forElement(endPointElt);
XMap properties = new XMap(element.getOne("properties"));
return new Channel(id, className, endPoint, properties);
}
}
代码示例来源:origin: org.graniteds/granite-server
public static Channel forElement(XMap element) {
String id = element.get("@id");
String className = element.get("@class");
XMap endPointElt = element.getOne("endpoint");
if (endPointElt == null)
throw new RuntimeException("Excepting a 'endpoint' element in 'channel-definition': " + id);
EndPoint endPoint = EndPoint.forElement(endPointElt);
XMap properties = new XMap(element.getOne("properties"));
return new Channel(id, className, endPoint, properties);
}
}
代码示例来源:origin: org.graniteds/granite-server
public static Destination forElement(XMap element, Adapter defaultAdapter, Map
String id = element.get("@id");
List
for (XMap channel : element.getAll("channels/channel[@ref]"))
channelRefs.add(channel.get("@ref"));
XMap properties = new XMap(element.getOne("properties"));
List
if (element.containsKey("security/security-constraint/roles/role")) {
rolesList = new ArrayList
for (XMap role : element.getAll("security/security-constraint/roles/role"))
rolesList.add(role.get("."));
}
XMap adapter = element.getOne("adapter[@ref]");
Adapter adapterRef = adapter != null && adaptersMap != null
? adaptersMap.get(adapter.get("@ref"))
: defaultAdapter;
return new Destination(id, channelRefs, properties, rolesList, adapterRef, null);
}
}
代码示例来源:origin: org.graniteds/granite-client
public static Destination forElement(XMap element, Adapter defaultAdapter, Map
String id = element.get("@id");
List
for (XMap channel : element.getAll("channels/channel[@ref]"))
channelRefs.add(channel.get("@ref"));
XMap properties = new XMap(element.getOne("properties"));
List
if (element.containsKey("security/security-constraint/roles/role")) {
rolesList = new ArrayList
for (XMap role : element.getAll("security/security-constraint/roles/role"))
rolesList.add(role.get("."));
}
XMap adapter = element.getOne("adapter[@ref]");
Adapter adapterRef = adapter != null && adaptersMap != null
? adaptersMap.get(adapter.get("@ref"))
: defaultAdapter;
return new Destination(id, channelRefs, properties, rolesList, adapterRef, null);
}
}
代码示例来源:origin: org.graniteds/granite-server-ejb
@Override
public void configure(XMap properties) throws ServiceException {
String sServiceExceptiOnHandler= properties.get("service-exception-handler");
if (sServiceExceptiOnHandler== null) {
XMap props = new XMap(properties);
props.put("service-exception-handler", ExtendedServiceExceptionHandler.class.getName());
super.configure(props);
}
else
super.configure(properties);
GraniteConfig cOnfig= GraniteContext.getCurrentInstance().getGraniteConfig();
config.registerExceptionConverter(PersistenceExceptionConverter.class);
config.registerExceptionConverter(EJBAccessExceptionConverter.class);
this.lookup = properties.get("lookup");
}