Brooklyn

brooklyn.entity.proxying
[Java] Class InternalLocationFactory

java.lang.Object
  brooklyn.entity.proxying.InternalLocationFactory

public class InternalLocationFactory

Creates locations of required types. This is an internal class for use by core-brooklyn. End-users are strongly discouraged from using this class directly.

Authors:
aled


Nested Class Summary
static class InternalLocationFactory.FactoryConstructionTracker

For tracking if AbstractLocation constructor has been called by framework, or in legacy way (i.e. directly).

 
Method Summary
java.lang.Object InternalLocationFactory(ManagementContextInternal managementContext)

java.lang.Object createLocation(LocationSpec spec)

static boolean isNewStyleLocation(ManagementContext managementContext, java.lang.Class clazz)

Returns true if this is a "new-style" location (i.e. where not expected to call the constructor to instantiate it).

static boolean isNewStyleLocation(java.lang.Class clazz)

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Method Detail

InternalLocationFactory

public java.lang.Object InternalLocationFactory(ManagementContextInternal managementContext)


createLocation

@SuppressWarnings({ "unchecked", "rawtypes" })
public java.lang.Object createLocation(LocationSpec spec)


isNewStyleLocation

public static boolean isNewStyleLocation(ManagementContext managementContext, java.lang.Class clazz)
Returns true if this is a "new-style" location (i.e. where not expected to call the constructor to instantiate it).
Parameters:
managementContext
clazz


isNewStyleLocation

public static boolean isNewStyleLocation(java.lang.Class clazz)


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.